diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-18 22:29:54 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-13 13:30:31 +0200 |
commit | 27b8a05c2cc1c9e3ae7c0001e3b0fcb990efb6bc (patch) | |
tree | f342d5b38b8af2e5759a83f4de84a9a026074d6e /pkgs/development/python-modules/cirq-rigetti | |
parent | f29c6d5c912ce83e5dcbfd7a7145fdcfbdd2fb23 (diff) |
python3Packages.cirq-rigetti: init at 0.12.0
Diffstat (limited to 'pkgs/development/python-modules/cirq-rigetti')
-rw-r--r-- | pkgs/development/python-modules/cirq-rigetti/default.nix | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cirq-rigetti/default.nix b/pkgs/development/python-modules/cirq-rigetti/default.nix new file mode 100644 index 0000000000000..781ce0eaa656f --- /dev/null +++ b/pkgs/development/python-modules/cirq-rigetti/default.nix @@ -0,0 +1,73 @@ +{ lib +, buildPythonPackage +, cirq-core +, pythonOlder +, fetchFromGitHub +, requests +, pytestCheckHook +, attrs +, certifi +, h11 +, httpcore +, idna +, httpx +, iso8601 +, pydantic +, pyjwt +, pyquil +, python-dateutil +, qcs-api-client +, retrying +, rfc3339 +, rfc3986 +, six +, sniffio +, toml +}: + +buildPythonPackage rec { + pname = "cirq-rigetti"; + inherit (cirq-core) version src meta; + + sourceRoot = "source/${pname}"; + + postPatch = '' + substituteInPlace requirements.txt \ + --replace "attrs~=20.3.0" "attrs" \ + --replace "h11~=0.9.0" "h11" \ + --replace "httpcore~=0.11.1" "httpcore" \ + --replace "httpx~=0.15.5" "httpx" \ + --replace "idna~=2.10" "idna" \ + --replace "requests~=2.18" "requests" \ + --replace "pyjwt~=1.7.1" "pyjwt" + ''; + + propagatedBuildInputs = [ + cirq-core + attrs + certifi + h11 + httpcore + httpx + idna + iso8601 + pydantic + pyjwt + pyquil + python-dateutil + qcs-api-client + retrying + rfc3339 + rfc3986 + six + sniffio + toml + ]; + + checkInputs = [ + pytestCheckHook + ]; + + # cirq's importlib hook doesn't work here + #pythonImportsCheck = [ "cirq_rigetti" ]; +} |