nixpkgs/pkgs/development/python-modules/xdg/default.nix

35 lines
717 B
Nix
Raw Normal View History

2020-03-26 00:04:56 +00:00
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, clikit
2021-01-12 02:40:52 +00:00
, poetry-core
2020-03-26 00:04:56 +00:00
, pytestCheckHook
}:
buildPythonPackage rec {
2021-05-21 05:16:32 +00:00
version = "5.0.2";
2020-03-26 00:04:56 +00:00
pname = "xdg";
disabled = isPy27;
format = "pyproject";
src = fetchFromGitHub {
owner = "srstevenson";
repo = pname;
rev = version;
2021-05-21 05:16:32 +00:00
sha256 = "sha256-wZfihMrq83Bye5CE5p7bTlI9Z7CsCkSd8Art5ws4vsY=";
2020-03-26 00:04:56 +00:00
};
2021-01-12 02:40:52 +00:00
nativeBuildInputs = [ poetry-core ];
2020-03-26 00:04:56 +00:00
propagatedBuildInputs = [
clikit
];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "XDG Base Directory Specification for Python";
homepage = "https://github.com/srstevenson/xdg";
license = licenses.isc;
maintainers = with maintainers; [ jonringer ];
};
}