Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ fetchPypi 2, lib 3, buildPythonPackage 4, pythonOlder 5, attrs 6, click 7, effect 8, jinja2 9, git 10, pytestCheckHook 11, pytest-black 12, pytestcov 13, pytest-isort 14}: 15 16buildPythonPackage rec { 17 pname = "nix-prefetch-github"; 18 version = "3.0"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-EN+EbVXUaf+id5UsK4EBm/9k9FYaH79g08kblvW60XA="; 23 }; 24 25 propagatedBuildInputs = [ 26 attrs 27 click 28 effect 29 jinja2 30 ]; 31 32 checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ]; 33 checkPhase = '' 34 pytest -m 'not network' 35 ''; 36 37 # latest version of isort will cause tests to fail 38 # ignore tests which are impure 39 disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ]; 40 41 meta = with lib; { 42 description = "Prefetch sources from github"; 43 homepage = "https://github.com/seppeljordan/nix-prefetch-github"; 44 license = licenses.gpl3; 45 maintainers = with maintainers; [ seppeljordan ]; 46 }; 47}