Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 clikit, 7 poetry-core, 8}: 9 10buildPythonPackage rec { 11 version = "6.0.0"; 12 pname = "xdg"; 13 disabled = pythonOlder "3.7"; 14 format = "pyproject"; 15 16 # the github source uses `xdg_base_dirs`, but pypi's sdist maintains `xdg` for compatibility. 17 # there are actually breaking changes in xdg_base_dirs, 18 # and libraries that want to support python 3.9 and below need to use xdg. 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-JCeAlPLUXoRtHrKKLruS17Z/wMq1JJ7jzojJX2SaHJI="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 propagatedBuildInputs = [ clikit ]; 27 28 # sdist has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "xdg" ]; 32 33 meta = with lib; { 34 description = "XDG Base Directory Specification for Python"; 35 homepage = "https://github.com/srstevenson/xdg"; 36 license = licenses.isc; 37 maintainers = [ ]; 38 }; 39}