nixpkgs/pkgs/development/python-modules/xdg/default.nix
2023-09-27 15:34:39 +02:00

35 lines
736 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, clikit
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
version = "6.0.0";
pname = "xdg";
disabled = isPy27;
format = "pyproject";
src = fetchFromGitHub {
owner = "srstevenson";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-yVuruSKv99IZGNCpY9cKwAe6gJNAWjL+Lol2D1/0hiI=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
clikit
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "XDG Base Directory Specification for Python";
homepage = "https://github.com/srstevenson/xdg";
license = licenses.isc;
maintainers = with maintainers; [ jonringer ];
};
}