diff options
author | figsoda <figsoda@pm.me> | 2023-05-14 11:41:20 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-05-14 11:41:20 -0400 |
commit | 58511b124ef34f1a0c89aa58a7e87a8861bc5700 (patch) | |
tree | 2a9ed913aa57de232fb994ee3b1ee6b478cd6f2b | |
parent | b753135b5309afcca69579eb1fae35e839e046ee (diff) | |
download | nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar.gz nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar.bz2 nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar.lz nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar.xz nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.tar.zst nixlib-58511b124ef34f1a0c89aa58a7e87a8861bc5700.zip |
python3.pkgs.xdg-base-dirs: init at 6.0.0
-rw-r--r-- | pkgs/development/python-modules/xdg-base-dirs/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 40 insertions, 0 deletions
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 { |