mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 01:02:20 +00:00
python3Packages.gradient-utils: drop (#574623)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user