Commit 58934a11 authored by Fabian Affolter's avatar Fabian Affolter Committed by github-actions[bot]
Browse files

python310Packages.gradient-utils: relax pymongo constraint

(cherry picked from commit 26541daa)
parent 8a6cdef0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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;
  };
}