1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00

Merge pull request #153227 from seppeljordan/update-nix-prefetch-github

pythonPackages.nix-prefetch-github: 4.0.4 -> 5.0.1
This commit is contained in:
Thiago Kenji Okada 2022-01-02 17:29:24 -03:00 committed by GitHub
commit 03985162cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";