nixpkgs/pkgs/development/python-modules/hydra-check/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
837 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, docopt
, requests
, beautifulsoup4
, mypy
2021-10-07 03:45:02 +00:00
, types-requests
}:
buildPythonPackage rec {
pname = "hydra-check";
2021-02-01 19:54:08 +00:00
version = "1.2.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "nix-community";
2021-02-01 19:54:08 +00:00
repo = pname;
rev = version;
2021-02-01 19:54:08 +00:00
sha256 = "EegoQ8qTrFGFYbCDsbAOE4Afg9haLjYdC0Cux/yvSk8=";
};
propagatedBuildInputs = [
docopt
requests
beautifulsoup4
];
2021-10-07 03:45:02 +00:00
checkInputs = [
mypy
types-requests
];
checkPhase = ''
echo -e "\x1b[32m## run mypy\x1b[0m"
mypy hydracheck
'';
2021-10-07 03:45:02 +00:00
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 ];
};
}