From 58511b124ef34f1a0c89aa58a7e87a8861bc5700 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 14 May 2023 11:41:20 -0400 Subject: [PATCH] python3.pkgs.xdg-base-dirs: init at 6.0.0 --- .../python-modules/xdg-base-dirs/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/xdg-base-dirs/default.nix diff --git a/pkgs/development/python-modules/xdg-base-dirs/default.nix b/pkgs/development/python-modules/xdg-base-dirs/default.nix new file mode 100644 index 000000000000..f2ca5bf0a509 --- /dev/null +++ b/pkgs/development/python-modules/xdg-base-dirs/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "xdg-base-dirs"; + version = "6.0.0"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "srstevenson"; + repo = "xdg-base-dirs"; + rev = version; + hash = "sha256-yVuruSKv99IZGNCpY9cKwAe6gJNAWjL+Lol2D1/0hiI="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "xdg_base_dirs" ]; + + meta = with lib; { + description = "An implementation of the XDG Base Directory Specification in Python"; + homepage = "https://github.com/srstevenson/xdg-base-dirs"; + changelog = "https://github.com/srstevenson/xdg-base-dirs/releases/tag/${src.rev}"; + license = licenses.isc; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d9d8ef988b05..04baeab0ca8f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12996,6 +12996,8 @@ self: super: with self; { xdg = callPackage ../development/python-modules/xdg { }; + xdg-base-dirs = callPackage ../development/python-modules/xdg-base-dirs { }; + xdis = callPackage ../development/python-modules/xdis { }; xdot = callPackage ../development/python-modules/xdot {