Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, docopt 6, requests 7, beautifulsoup4 8, black 9, mypy 10, flake8 11}: 12 13buildPythonPackage rec { 14 pname = "hydra-check"; 15 version = "1.1.1"; 16 disabled = pythonOlder "3.5"; 17 18 src = fetchFromGitHub { 19 owner = "nix-community"; 20 repo = "hydra-check"; 21 rev = version; 22 sha256 = "1dmsscsib8ckp496gsfqxmq8d35zs71n99xmziq9iprvy7n5clq2"; 23 }; 24 25 propagatedBuildInputs = [ 26 docopt 27 requests 28 beautifulsoup4 29 ]; 30 31 checkInputs = [ mypy ]; 32 33 checkPhase = '' 34 echo -e "\x1b[32m## run mypy\x1b[0m" 35 mypy hydracheck 36 ''; 37 38 meta = with lib;{ 39 description = "check hydra for the build status of a package"; 40 homepage = "https://github.com/nix-community/hydra-check"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ makefu ]; 43 }; 44} 45