1{ fetchFromGitHub
2, lib
3, buildPythonPackage
4, attrs
5, click
6, effect
7, git
8, pytestCheckHook
9, pytest-cov
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "nix-prefetch-github";
15 version = "4.0.4";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "seppeljordan";
21 repo = "nix-prefetch-github";
22 rev = "v${version}";
23 sha256 = "g5G818Gq5EGyRIyg/ZW7guxMS0IyJ4nYaRjG/CtGhuc=";
24 };
25
26 propagatedBuildInputs = [
27 attrs
28 click
29 effect
30 ];
31
32 checkInputs = [ pytestCheckHook pytest-cov git ];
33
34 # ignore tests which are impure
35 disabledTests = [ "network" "requires_nix_build" ];
36
37 meta = with lib; {
38 description = "Prefetch sources from github";
39 homepage = "https://github.com/seppeljordan/nix-prefetch-github";
40 license = licenses.gpl3;
41 maintainers = with maintainers; [ seppeljordan ];
42 };
43}