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";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/${pname}";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"attrs"
|
|
|
|
"certifi"
|
|
|
|
"h11"
|
|
|
|
"httpcore"
|
|
|
|
"httpx"
|
|
|
|
"idna"
|
|
|
|
"iso8601"
|
|
|
|
"pydantic"
|
|
|
|
"pyjwt"
|
|
|
|
"pyquil"
|
|
|
|
"qcs-api-client"
|
|
|
|
"rfc3986"
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
postPatch = ''
|
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" ];
|
|
|
|
}
|