1{ buildPythonPackage
2, cirq-core
3, requests
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "cirq-ionq";
9 inherit (cirq-core) version src meta;
10
11 sourceRoot = "source/${pname}";
12
13 postPatch = ''
14 substituteInPlace requirements.txt \
15 --replace "requests~=2.18" "requests"
16 '';
17
18 propagatedBuildInputs = [
19 cirq-core
20 requests
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 # cirq's importlib hook doesn't work here
28 #pythonImportsCheck = [ "cirq_ionq" ];
29
30 disabledTestPaths = [
31 # No need to test the version number
32 "cirq_ionq/_version_test.py"
33 ];
34
35 disabledTests = [
36 # DeprecationWarning: decompose_to_device was used but is deprecated.
37 "test_decompose_operation_deprecated"
38 ];
39}