1{ buildPythonPackage
2, cirq-core
3, requests
4, pytestCheckHook
5, attrs
6, certifi
7, h11
8, httpcore
9, idna
10, httpx
11, iso8601
12, pydantic
13, pyjwt
14, pyquil
15, python-dateutil
16, qcs-api-client
17, retrying
18, rfc3339
19, rfc3986
20, six
21, sniffio
22, toml
23}:
24
25buildPythonPackage rec {
26 pname = "cirq-rigetti";
27 inherit (cirq-core) version src meta;
28
29 sourceRoot = "source/${pname}";
30
31 postPatch = ''
32 substituteInPlace requirements.txt \
33 --replace "attrs~=20.3.0" "attrs" \
34 --replace "certifi~=2021.5.30" "certifi" \
35 --replace "h11~=0.9.0" "h11" \
36 --replace "httpcore~=0.11.1" "httpcore" \
37 --replace "httpx~=0.15.5" "httpx" \
38 --replace "idna~=2.10" "idna" \
39 --replace "requests~=2.18" "requests" \
40 --replace "pyjwt~=1.7.1" "pyjwt" \
41 --replace "qcs-api-client~=0.8.0" "qcs-api-client"
42 '';
43
44 propagatedBuildInputs = [
45 cirq-core
46 attrs
47 certifi
48 h11
49 httpcore
50 httpx
51 idna
52 iso8601
53 pydantic
54 pyjwt
55 pyquil
56 python-dateutil
57 qcs-api-client
58 retrying
59 rfc3339
60 rfc3986
61 six
62 sniffio
63 toml
64 ];
65
66 checkInputs = [
67 pytestCheckHook
68 ];
69
70 # cirq's importlib hook doesn't work here
71 #pythonImportsCheck = [ "cirq_rigetti" ];
72}