1{
2 buildPythonPackage,
3 cirq-core,
4 requests,
5 pytestCheckHook,
6 attrs,
7 certifi,
8 h11,
9 httpcore,
10 idna,
11 httpx,
12 iso8601,
13 pydantic,
14 pyjwt,
15 pyquil,
16 python-dateutil,
17 pythonOlder,
18 qcs-api-client,
19 retrying,
20 rfc3339,
21 rfc3986,
22 six,
23 sniffio,
24 toml,
25}:
26
27buildPythonPackage rec {
28 pname = "cirq-rigetti";
29 format = "setuptools";
30 inherit (cirq-core) version src meta;
31
32 disabled = pythonOlder "3.7";
33
34 sourceRoot = "${src.name}/${pname}";
35
36 pythonRelaxDeps = [
37 "attrs"
38 "certifi"
39 "h11"
40 "httpcore"
41 "httpx"
42 "idna"
43 "iso8601"
44 "pydantic"
45 "pyjwt"
46 "pyquil"
47 "qcs-api-client"
48 "rfc3986"
49 ];
50
51 postPatch = ''
52 # Remove outdated test
53 rm cirq_rigetti/service_test.py
54 '';
55
56 propagatedBuildInputs = [
57 cirq-core
58 attrs
59 certifi
60 h11
61 httpcore
62 httpx
63 idna
64 iso8601
65 pydantic
66 pyjwt
67 pyquil
68 python-dateutil
69 qcs-api-client
70 retrying
71 rfc3339
72 rfc3986
73 six
74 sniffio
75 toml
76 ];
77
78 nativeCheckInputs = [ pytestCheckHook ];
79
80 disabledTestPaths = [
81 # No need to test the version number
82 "cirq_rigetti/_version_test.py"
83 ];
84
85 # cirq's importlib hook doesn't work here
86 #pythonImportsCheck = [ "cirq_rigetti" ];
87}