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