python3Packages.gradient-utils: drop (#574623)

This commit is contained in:
Yohann Boniface
2026-10-16 20:57:33 +00:00
committed by GitHub
3 changed files with 1 additions and 69 deletions

View File

@@ -1,67 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hyperopt,
mock,
numpy,
poetry-core,
prometheus-client,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "gradient-utils";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Paperspace";
repo = "gradient-utils";
tag = "v${version}";
hash = "sha256-swnl0phdOsBSP8AX/OySI/aYI9z60Ss3SsJox/mb9KY=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
hyperopt
prometheus-client
numpy
];
nativeCheckInputs = [
mock
requests
pytestCheckHook
];
postPatch = ''
# https://github.com/Paperspace/gradient-utils/issues/68
# https://github.com/Paperspace/gradient-utils/issues/72
substituteInPlace pyproject.toml \
--replace 'wheel = "^0.35.1"' 'wheel = "*"' \
--replace 'prometheus-client = ">=0.8,<0.10"' 'prometheus-client = "*"' \
--replace 'pymongo = "^3.11.0"' 'pymongo = ">=3.11.0"'
'';
preCheck = ''
export HOSTNAME=myhost-experimentId
'';
disabledTestPaths = [
# Requires a working Prometheus push gateway
"tests/integration/test_metrics.py"
];
pythonImportsCheck = [ "gradient_utils" ];
meta = {
description = "Python utils and helpers library for Gradient";
homepage = "https://github.com/Paperspace/gradient-utils";
license = lib.licenses.mit;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}

View File

@@ -305,6 +305,7 @@ mapAliases {
gpgme = gpg; # added 2026-06-26
gplaycli = throw "'gplaycli' has been removed as it was broken and lacked maintenance"; # Added 2025-11-09
gpy = throw "'gpy' has been removed as it is based on 'paramz', which was removed"; # added 2025-11-10
gradient-utils = throw "'gradient-utils' has been removed because it was archived upstream and unused in tree."; # Added 2026-10-15
gradient_statsd = throw "'gradient_statsd' has been renamed to/replaced by 'gradient-statsd'"; # Converted to throw 2025-10-29
grapheme = throw "'grapheme' has been removed as it is unmaintained upstream. Consider using 'graphemeu' instead."; # Converted to throw 2025-12-22
grappelli_safe = throw "'grappelli_safe' has been renamed to/replaced by 'grappelli-safe'"; # Converted to throw 2025-10-29

View File

@@ -7274,8 +7274,6 @@ self: super: with self; {
gradient-statsd = callPackage ../development/python-modules/gradient-statsd { };
gradient-utils = callPackage ../development/python-modules/gradient-utils { };
gradio = callPackage ../development/python-modules/gradio { };
gradio-client = callPackage ../development/python-modules/gradio/client.nix {