From b02211cdc3988fb537f813cfc21300b331a0ca35 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 7 Apr 2020 15:08:05 +0200 Subject: [PATCH] python3Packages.hydra-check: init at 1.1.1 --- .../python-modules/hydra-check/default.nix | 45 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/hydra-check/default.nix diff --git a/pkgs/development/python-modules/hydra-check/default.nix b/pkgs/development/python-modules/hydra-check/default.nix new file mode 100644 index 0000000000000..7316a6fc971d9 --- /dev/null +++ b/pkgs/development/python-modules/hydra-check/default.nix @@ -0,0 +1,45 @@ +{ 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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7aeaad312802e..5b9c4a602a75f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12112,6 +12112,8 @@ in hydraAntLogger = callPackage ../development/libraries/java/hydra-ant-logger { }; + hydra-check = with python3.pkgs; toPythonApplication hydra-check; + hyena = callPackage ../development/libraries/hyena { }; hyperscan = callPackage ../development/libraries/hyperscan { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e16cc830fc2bf..5e89267e6b3ad 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4004,6 +4004,8 @@ in { hypothesis = callPackage ../development/python-modules/hypothesis { }; + hydra-check = callPackage ../development/python-modules/hydra-check { }; + colored = callPackage ../development/python-modules/colored { }; xdg = callPackage ../development/python-modules/xdg { };