depot/third_party/nixpkgs/pkgs/development/python-modules/hydra-check/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

47 lines
837 B
Nix

{ 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 ];
};
}