Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, poetry-core 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "xdg-base-dirs"; 11 version = "6.0.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.10"; 15 16 src = fetchFromGitHub { 17 owner = "srstevenson"; 18 repo = "xdg-base-dirs"; 19 rev = version; 20 hash = "sha256-yVuruSKv99IZGNCpY9cKwAe6gJNAWjL+Lol2D1/0hiI="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "xdg_base_dirs" ]; 30 31 meta = with lib; { 32 description = "An implementation of the XDG Base Directory Specification in Python"; 33 homepage = "https://github.com/srstevenson/xdg-base-dirs"; 34 changelog = "https://github.com/srstevenson/xdg-base-dirs/releases/tag/${src.rev}"; 35 license = licenses.isc; 36 maintainers = with maintainers; [ figsoda ]; 37 }; 38}