mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
46 lines
827 B
Nix
46 lines
827 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, docopt
|
|
, requests
|
|
, beautifulsoup4
|
|
, black
|
|
, mypy
|
|
, flake8
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hydra-check";
|
|
version = "1.1.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "hydra-check";
|
|
rev = version;
|
|
sha256 = "1dmsscsib8ckp496gsfqxmq8d35zs71n99xmziq9iprvy7n5clq2";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
docopt
|
|
requests
|
|
beautifulsoup4
|
|
];
|
|
|
|
checkInputs = [ mypy ];
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|