pythonPackages.nix-prefetch-github: 4.0.4 -> 5.0.1

This commit is contained in:
Sebastian Jordan 2022-01-02 17:30:12 +01:00
parent c3b42ec9cb
commit b704d85cce

View file

@ -1,18 +1,13 @@
{ fetchFromGitHub
, lib
, buildPythonPackage
, attrs
, click
, effect
, git
, pytestCheckHook
, pytest-cov
, pythonOlder
}:
buildPythonPackage rec {
pname = "nix-prefetch-github";
version = "4.0.4";
version = "5.0.1";
disabled = pythonOlder "3.7";
@ -20,19 +15,16 @@ buildPythonPackage rec {
owner = "seppeljordan";
repo = "nix-prefetch-github";
rev = "v${version}";
sha256 = "g5G818Gq5EGyRIyg/ZW7guxMS0IyJ4nYaRjG/CtGhuc=";
sha256 = "DOmFfUCLJ+rnS4PznQaQrDrqjUU4DXmOrC9BspqKZVM=";
};
propagatedBuildInputs = [
attrs
click
effect
];
checkInputs = [ pytestCheckHook pytest-cov git ];
checkInputs = [ git ];
checkPhase = ''
python -m unittest discover
'';
# ignore tests which are impure
disabledTests = [ "network" "requires_nix_build" ];
DISABLED_TESTS = "network requires_nix_build";
meta = with lib; {
description = "Prefetch sources from github";