2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
2021-10-28 06:52:43 +00:00
|
|
|
, cirq-core
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
, attrs
|
|
|
|
, certifi
|
|
|
|
, h11
|
|
|
|
, httpcore
|
|
|
|
, idna
|
|
|
|
, httpx
|
|
|
|
, iso8601
|
|
|
|
, pydantic
|
|
|
|
, pyjwt
|
|
|
|
, pyquil
|
|
|
|
, python-dateutil
|
2022-01-07 04:07:37 +00:00
|
|
|
, pythonOlder
|
2021-10-28 06:52:43 +00:00
|
|
|
, qcs-api-client
|
|
|
|
, retrying
|
|
|
|
, rfc3339
|
|
|
|
, rfc3986
|
|
|
|
, six
|
|
|
|
, sniffio
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq-rigetti";
|
|
|
|
inherit (cirq-core) version src meta;
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
sourceRoot = "source/${pname}";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "attrs~=20.3.0" "attrs" \
|
2021-12-06 16:07:01 +00:00
|
|
|
--replace "certifi~=2021.5.30" "certifi" \
|
2021-10-28 06:52:43 +00:00
|
|
|
--replace "h11~=0.9.0" "h11" \
|
|
|
|
--replace "httpcore~=0.11.1" "httpcore" \
|
|
|
|
--replace "httpx~=0.15.5" "httpx" \
|
|
|
|
--replace "idna~=2.10" "idna" \
|
2021-12-06 16:07:01 +00:00
|
|
|
--replace "pyjwt~=1.7.1" "pyjwt" \
|
2022-01-13 20:06:32 +00:00
|
|
|
--replace "qcs-api-client~=0.8.0" "qcs-api-client" \
|
|
|
|
--replace "iso8601~=0.1.14" "iso8601" \
|
2022-02-20 05:27:41 +00:00
|
|
|
--replace "rfc3986~=1.5.0" "rfc3986" \
|
|
|
|
--replace "pyquil~=3.0.0" "pyquil" \
|
2022-01-13 20:06:32 +00:00
|
|
|
--replace "pydantic~=1.8.2" "pydantic"
|
2022-01-07 04:07:37 +00:00
|
|
|
# Remove outdated test
|
|
|
|
rm cirq_rigetti/service_test.py
|
2021-10-28 06:52:43 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cirq-core
|
|
|
|
attrs
|
|
|
|
certifi
|
|
|
|
h11
|
|
|
|
httpcore
|
|
|
|
httpx
|
|
|
|
idna
|
|
|
|
iso8601
|
|
|
|
pydantic
|
|
|
|
pyjwt
|
|
|
|
pyquil
|
|
|
|
python-dateutil
|
|
|
|
qcs-api-client
|
|
|
|
retrying
|
|
|
|
rfc3339
|
|
|
|
rfc3986
|
|
|
|
six
|
|
|
|
sniffio
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# No need to test the version number
|
|
|
|
"cirq_rigetti/_version_test.py"
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
# cirq's importlib hook doesn't work here
|
|
|
|
#pythonImportsCheck = [ "cirq_rigetti" ];
|
|
|
|
}
|