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 24}: 25 26buildPythonPackage rec { 27 pname = "cirq-rigetti"; 28 inherit (cirq-core) version src meta; 29 30 disabled = pythonOlder "3.7"; 31 32 sourceRoot = "source/${pname}"; 33 34 postPatch = '' 35 substituteInPlace requirements.txt \ 36 --replace "attrs~=20.3.0" "attrs" \ 37 --replace "certifi~=2021.5.30" "certifi" \ 38 --replace "h11~=0.9.0" "h11" \ 39 --replace "httpcore~=0.11.1" "httpcore" \ 40 --replace "httpx~=0.15.5" "httpx" \ 41 --replace "idna~=2.10" "idna" \ 42 --replace "pyjwt~=1.7.1" "pyjwt" \ 43 --replace "qcs-api-client~=0.8.0" "qcs-api-client" \ 44 --replace "iso8601~=0.1.14" "iso8601" \ 45 --replace "rfc3986~=1.5.0" "rfc3986" \ 46 --replace "pyquil~=3.0.0" "pyquil" \ 47 --replace "pydantic~=1.8.2" "pydantic" 48 # Remove outdated test 49 rm cirq_rigetti/service_test.py 50 ''; 51 52 propagatedBuildInputs = [ 53 cirq-core 54 attrs 55 certifi 56 h11 57 httpcore 58 httpx 59 idna 60 iso8601 61 pydantic 62 pyjwt 63 pyquil 64 python-dateutil 65 qcs-api-client 66 retrying 67 rfc3339 68 rfc3986 69 six 70 sniffio 71 toml 72 ]; 73 74 checkInputs = [ 75 pytestCheckHook 76 ]; 77 78 disabledTestPaths = [ 79 # No need to test the version number 80 "cirq_rigetti/_version_test.py" 81 ]; 82 83 # cirq's importlib hook doesn't work here 84 #pythonImportsCheck = [ "cirq_rigetti" ]; 85}