1{ 2 fetchFromGitHub, 3 lib, 4 buildPythonPackage, 5 git, 6 which, 7 pythonOlder, 8 unittestCheckHook, 9 sphinxHook, 10 sphinx-argparse, 11 parameterized, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "nix-prefetch-github"; 17 version = "7.1.0"; 18 pyproject = true; 19 20 outputs = [ 21 "out" 22 "man" 23 ]; 24 disabled = pythonOlder "3.9"; 25 26 src = fetchFromGitHub { 27 owner = "seppeljordan"; 28 repo = "nix-prefetch-github"; 29 rev = "v${version}"; 30 hash = "sha256-eQd/MNlnuzXzgFzvwUMchvHoIvkIrbpGKV7iknO14Cc="; 31 }; 32 33 nativeBuildInputs = [ 34 sphinxHook 35 sphinx-argparse 36 setuptools 37 ]; 38 nativeCheckInputs = [ 39 unittestCheckHook 40 git 41 which 42 parameterized 43 ]; 44 45 sphinxBuilders = [ "man" ]; 46 sphinxRoot = "docs"; 47 48 # ignore tests which are impure 49 DISABLED_TESTS = "network requires_nix_build"; 50 51 meta = with lib; { 52 description = "Prefetch sources from github"; 53 homepage = "https://github.com/seppeljordan/nix-prefetch-github"; 54 license = licenses.gpl3; 55 maintainers = with maintainers; [ seppeljordan ]; 56 }; 57}