2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
cirq-core,
|
|
|
|
requests,
|
|
|
|
pytestCheckHook,
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq-ionq";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
inherit (cirq-core) version src meta;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/${pname}";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "requests~=2.18" "requests"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cirq-core
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
# cirq's importlib hook doesn't work here
|
|
|
|
#pythonImportsCheck = [ "cirq_ionq" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# No need to test the version number
|
|
|
|
"cirq_ionq/_version_test.py"
|
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# DeprecationWarning: decompose_to_device was used but is deprecated.
|
|
|
|
"test_decompose_operation_deprecated"
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
}
|