1{ fetchFromGitHub 2, lib 3, buildPythonPackage 4, git 5, which 6, pythonOlder 7, unittestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "nix-prefetch-github"; 12 version = "7.0.0"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "seppeljordan"; 18 repo = "nix-prefetch-github"; 19 rev = "v${version}"; 20 hash = "sha256-oIR2iEiOBQ1VKouJTLqEiWWNzrMSJcnxK+m/j9Ia/m8="; 21 }; 22 23 nativeCheckInputs = [ unittestCheckHook git which ]; 24 25 # ignore tests which are impure 26 DISABLED_TESTS = "network requires_nix_build"; 27 28 meta = with lib; { 29 description = "Prefetch sources from github"; 30 homepage = "https://github.com/seppeljordan/nix-prefetch-github"; 31 license = licenses.gpl3; 32 maintainers = with maintainers; [ seppeljordan ]; 33 }; 34}