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-01-12 02:40:52 +00:00
version = "5.0.1";
2020-03-26 00:04:56 +00:00
pname = "xdg";
disabled = isPy27;
format = "pyproject";
src = fetchFromGitHub {
owner = "srstevenson";
repo = pname;
rev = version;
2021-01-12 02:40:52 +00:00
sha256 = "sha256-WMY9Hs9SbErTp8hVBoCWTz4dLQhuzqTRpXFEyE7+woo=";
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 ];
};
}