2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
cirq-core,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
attrs,
|
|
|
|
certifi,
|
|
|
|
h11,
|
|
|
|
httpcore,
|
|
|
|
idna,
|
|
|
|
httpx,
|
|
|
|
iso8601,
|
|
|
|
pydantic,
|
|
|
|
pyjwt,
|
|
|
|
pyquil,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
qcs-api-client,
|
|
|
|
retrying,
|
|
|
|
rfc3339,
|
|
|
|
rfc3986,
|
|
|
|
six,
|
|
|
|
sniffio,
|
|
|
|
toml,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq-rigetti";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit (cirq-core) version src;
|
2021-10-28 06:52:43 +00:00
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
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" ];
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
meta = cirq-core.meta // {
|
|
|
|
# ModuleNotFoundError: No module named 'pyquil.parser'
|
|
|
|
broken = lib.versionAtLeast pyquil.version "4";
|
|
|
|
};
|
2021-10-28 06:52:43 +00:00
|
|
|
}
|