504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
944 B
Nix
42 lines
944 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, clikit
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "6.0.0";
|
|
pname = "xdg";
|
|
disabled = pythonOlder "3.7";
|
|
format = "pyproject";
|
|
|
|
# the github source uses `xdg_base_dirs`, but pypi's sdist maintains `xdg` for compatibility.
|
|
# there are actually breaking changes in xdg_base_dirs,
|
|
# and libraries that want to support python 3.9 and below need to use xdg.
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-JCeAlPLUXoRtHrKKLruS17Z/wMq1JJ7jzojJX2SaHJI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
clikit
|
|
];
|
|
|
|
# sdist has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"xdg"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "XDG Base Directory Specification for Python";
|
|
homepage = "https://github.com/srstevenson/xdg";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|