13 buildPythonPackage rec {
14 pname = "cirq-rigetti";
16 inherit (cirq-core) version src;
18 disabled = pythonOlder "3.10";
21 # https://github.com/quantumlib/Cirq/pull/6734
23 name = "fix-rigetti-check-for-aspen-family-device-kind.patch";
24 url = "https://github.com/quantumlib/Cirq/commit/dd395fb71fb7f92cfd34f008bf2a98fc70b57fae.patch";
26 hash = "sha256-EWB2CfMS2+M3zNFX5PwFNtEBdgJkNVUVNd+I/E6n9kI=";
30 sourceRoot = "${src.name}/${pname}";
32 pythonRelaxDeps = [ "pyquil" ];
35 # Remove outdated test
36 rm cirq_rigetti/service_test.py
39 build-system = [ setuptools ];
47 nativeCheckInputs = [ pytestCheckHook ];
50 # No need to test the version number
51 "cirq_rigetti/_version_test.py"
54 # cirq's importlib hook doesn't work here
55 #pythonImportsCheck = [ "cirq_rigetti" ];