summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-11-25 10:12:50 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-25 10:38:27 +0000
commit58934a111fb9ea60d826de1338f3f309852feb53 (patch)
tree1d652cb3f24311903daf02524349b2a95abeb634
parentprometheus: 2.40.2 -> 2.40.3 (diff)
downloadnixpkgs-origin/backport-202813-to-release-22.11.tar.gz
python310Packages.gradient-utils: relax pymongo constraintorigin/backport-202813-to-release-22.11
(cherry picked from commit 26541daa23e80e6c3611a35b0cb31593689b2615)
-rw-r--r--pkgs/development/python-modules/gradient-utils/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/gradient-utils/default.nix b/pkgs/development/python-modules/gradient-utils/default.nix
index e81d815e8c20..a0637e7d9e57 100644
--- a/pkgs/development/python-modules/gradient-utils/default.nix
+++ b/pkgs/development/python-modules/gradient-utils/default.nix
@@ -21,8 +21,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Paperspace";
repo = pname;
- rev = "v${version}";
- sha256 = "19plkgwwfs6298vjplgsvhirixi3jbngq5y07x9c0fjxk39fa2dk";
+ rev = "refs/tags/v${version}";
+ hash = "sha256-swnl0phdOsBSP8AX/OySI/aYI9z60Ss3SsJox/mb9KY=";
};
nativeBuildInputs = [
@@ -42,9 +42,12 @@ buildPythonPackage rec {
];
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 'prometheus-client = ">=0.8,<0.10"' 'prometheus-client = "*"' \
+ --replace 'pymongo = "^3.11.0"' 'pymongo = ">=3.11.0"'
'';
preCheck = ''
@@ -64,7 +67,7 @@ buildPythonPackage rec {
description = "Python utils and helpers library for Gradient";
homepage = "https://github.com/Paperspace/gradient-utils";
license = licenses.mit;
- platforms = platforms.unix;
maintainers = with maintainers; [ freezeboy ];
+ platforms = platforms.unix;
};
}