nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 899 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "xdg-base-dirs"; 11 version = "6.0.2"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "srstevenson"; 16 repo = "xdg-base-dirs"; 17 tag = version; 18 hash = "sha256-iXK9WURTfmpl5vd7RsT0ptwfrb5UQQFqMMCu3+vL+EY="; 19 }; 20 21 nativeBuildInputs = [ poetry-core ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "xdg_base_dirs" ]; 26 27 # remove coverage flags from pytest config 28 postPatch = '' 29 sed -i /addopts/d pyproject.toml 30 ''; 31 32 meta = { 33 description = "Implementation of the XDG Base Directory Specification in Python"; 34 homepage = "https://github.com/srstevenson/xdg-base-dirs"; 35 changelog = "https://github.com/srstevenson/xdg-base-dirs/releases/tag/${version}"; 36 license = lib.licenses.isc; 37 maintainers = [ ]; 38 }; 39}