Commit 69adebcb authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.cirq-rigetti: switch to pythonRelaxDepsHook

parent 5c307b6b
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -31,20 +31,22 @@ buildPythonPackage rec {

  sourceRoot = "${src.name}/${pname}";

  pythonRelaxDeps = [
    "attrs"
    "certifi"
    "h11"
    "httpcore"
    "httpx"
    "idna"
    "iso8601"
    "pydantic"
    "pyjwt"
    "pyquil"
    "qcs-api-client"
    "rfc3986"
  ];

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "attrs~=20.3.0" "attrs" \
      --replace "certifi~=2021.5.30" "certifi" \
      --replace "h11~=0.9.0" "h11" \
      --replace "httpcore~=0.11.1" "httpcore" \
      --replace "httpx~=0.15.5" "httpx" \
      --replace "idna~=2.10" "idna" \
      --replace "pyjwt~=1.7.1" "pyjwt" \
      --replace "qcs-api-client~=0.8.0" "qcs-api-client" \
      --replace "iso8601~=0.1.14" "iso8601" \
      --replace "rfc3986~=1.5.0" "rfc3986" \
      --replace "pyquil~=3.0.0" "pyquil" \
      --replace "pydantic~=1.8.2" "pydantic"
    # Remove outdated test
    rm cirq_rigetti/service_test.py
  '';