1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 requests,
8 beautifulsoup4,
9 colorama,
10}:
11
12buildPythonPackage rec {
13 pname = "hydra-check";
14 version = "1.3.5";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "nix-community";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-fRSC+dfZZSBBeN6YidXRKc1kPUbBKz5OiFSHGOSikgI=";
24 };
25
26 nativeBuildInputs = [ poetry-core ];
27 propagatedBuildInputs = [
28 colorama
29 requests
30 beautifulsoup4
31 ];
32
33 pythonImportsCheck = [ "hydra_check" ];
34
35 meta = with lib; {
36 description = "check hydra for the build status of a package";
37 mainProgram = "hydra-check";
38 homepage = "https://github.com/nix-community/hydra-check";
39 license = licenses.mit;
40 maintainers = with maintainers; [
41 makefu
42 artturin
43 ];
44 };
45}