hydra-check: 1.3.5 -> 2.0.1 (#359514)

This commit is contained in:
Doron Behar
2024-12-22 15:07:29 +02:00
committed by GitHub
5 changed files with 53 additions and 49 deletions
+52
View File
@@ -0,0 +1,52 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
stdenv,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "hydra-check";
version = "2.0.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "hydra-check";
rev = "v${version}";
hash = "sha256-QdCXToHNymOdlTyQjk9eo7LTznGKB+3pIOgjjaGoTXg=";
};
cargoHash = "sha256-iqFUMok36G1qSUbfY7WD6etY0dtfro3F7mLoOELzxbs=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
openssl
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd hydra-check \
--bash <($out/bin/hydra-check --shell-completion bash) \
--fish <($out/bin/hydra-check --shell-completion fish) \
--zsh <($out/bin/hydra-check --shell-completion zsh)
'';
meta = {
description = "Check hydra for the build status of a package";
homepage = "https://github.com/nix-community/hydra-check";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
makefu
artturin
bryango
doronbehar
];
mainProgram = "hydra-check";
};
}
@@ -1,45 +0,0 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
requests,
beautifulsoup4,
colorama,
}:
buildPythonPackage rec {
pname = "hydra-check";
version = "1.3.5";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-fRSC+dfZZSBBeN6YidXRKc1kPUbBKz5OiFSHGOSikgI=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
colorama
requests
beautifulsoup4
];
pythonImportsCheck = [ "hydra_check" ];
meta = with lib; {
description = "check hydra for the build status of a package";
mainProgram = "hydra-check";
homepage = "https://github.com/nix-community/hydra-check";
license = licenses.mit;
maintainers = with maintainers; [
makefu
artturin
];
};
}
-2
View File
@@ -9462,8 +9462,6 @@ with pkgs;
hydra = callPackage ../by-name/hy/hydra/package.nix { nix = nixVersions.nix_2_24; };
hydra-check = with python3.pkgs; toPythonApplication hydra-check;
icu-versions = callPackages ../development/libraries/icu { };
inherit (icu-versions)
icu60
+1
View File
@@ -274,6 +274,7 @@ mapAliases ({
htmllaundry = throw "htmllaundry has been removed because it is abandoned"; # added 2024-06-04
HTSeq = htseq; # added 2023-02-19
hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29
hydra-check = throw "The Python package hydra-check was removed in favor of the top-level rust based pkgs.hydra-check"; # added 2022-04-29
ihatemoney = throw "ihatemoney was removed because it is no longer maintained downstream"; # added 2023-04-08
IMAPClient = imapclient; # added 2021-10-28
imdbpy = throw "imdbpy has been renamed to cinemagoer"; # added 2022-08-08
-2
View File
@@ -6075,8 +6075,6 @@ self: super: with self; {
hydra-core = callPackage ../development/python-modules/hydra-core { };
hydra-check = callPackage ../development/python-modules/hydra-check { };
hydrawiser = callPackage ../development/python-modules/hydrawiser { };
hydrogram = callPackage ../development/python-modules/hydrogram { };