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.2.0";
16 disabled = pythonOlder "3.5";
17
18 src = fetchFromGitHub {
19 owner = "nix-community";
20 repo = pname;
21 rev = version;
22 sha256 = "EegoQ8qTrFGFYbCDsbAOE4Afg9haLjYdC0Cux/yvSk8=";
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