Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cirq-rigetti / default.nix
blob2189beb9f880ff0a8796bc1996d1f5f767df0be0
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 , pythonOlder
17 , qcs-api-client
18 , retrying
19 , rfc3339
20 , rfc3986
21 , six
22 , sniffio
23 , toml
26 buildPythonPackage rec {
27   pname = "cirq-rigetti";
28   format = "setuptools";
29   inherit (cirq-core) version src meta;
31   disabled = pythonOlder "3.7";
33   sourceRoot = "${src.name}/${pname}";
35   pythonRelaxDeps = [
36     "attrs"
37     "certifi"
38     "h11"
39     "httpcore"
40     "httpx"
41     "idna"
42     "iso8601"
43     "pydantic"
44     "pyjwt"
45     "pyquil"
46     "qcs-api-client"
47     "rfc3986"
48   ];
50   postPatch = ''
51     # Remove outdated test
52     rm cirq_rigetti/service_test.py
53   '';
55   propagatedBuildInputs = [
56     cirq-core
57     attrs
58     certifi
59     h11
60     httpcore
61     httpx
62     idna
63     iso8601
64     pydantic
65     pyjwt
66     pyquil
67     python-dateutil
68     qcs-api-client
69     retrying
70     rfc3339
71     rfc3986
72     six
73     sniffio
74     toml
75   ];
77   nativeCheckInputs = [
78     pytestCheckHook
79   ];
81   disabledTestPaths = [
82     # No need to test the version number
83     "cirq_rigetti/_version_test.py"
84   ];
86   # cirq's importlib hook doesn't work here
87   #pythonImportsCheck = [ "cirq_rigetti" ];