2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
2021-10-28 06:52:43 +00:00
|
|
|
, cirq-core
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|