summary refs log tree commit diff
path: root/pkgs/development/python-modules/hydra-check/default.nix
blob: 48833d77e8bfd99c3991f6f5f08ecf120af0d526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, docopt
, requests
, beautifulsoup4
, mypy
, types-requests
}:

buildPythonPackage rec {
  pname = "hydra-check";
  version = "1.2.0";
  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "nix-community";
    repo = pname;
    rev = version;
    sha256 = "EegoQ8qTrFGFYbCDsbAOE4Afg9haLjYdC0Cux/yvSk8=";
  };

  propagatedBuildInputs = [
    docopt
    requests
    beautifulsoup4
  ];

  checkInputs = [
    mypy
    types-requests
  ];

  checkPhase = ''
    echo -e "\x1b[32m## run mypy\x1b[0m"
    mypy hydracheck
  '';

  meta = with lib; {
    description = "check hydra for the build status of a package";
    homepage = "https://github.com/nix-community/hydra-check";
    license = licenses.mit;
    maintainers = with maintainers; [ makefu ];
  };
}