Merge pull request #231868 from figsoda/xdg-base-dirs
This commit is contained in:
commit
40541b1a63
2 changed files with 40 additions and 0 deletions
38
pkgs/development/python-modules/xdg-base-dirs/default.nix
Normal file
38
pkgs/development/python-modules/xdg-base-dirs/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -12994,6 +12994,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 {
|
||||
|
|
Loading…
Reference in a new issue