Merge pull request #202813 from fabaff/gradient-utils-fix

python310Packages.gradient-utils: relax pymongo constraint
This commit is contained in:
Fabian Affolter 2022-11-25 11:32:54 +01:00 committed by GitHub
commit df092ecb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};
}