Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 cirq-core, 4 setuptools, 5 pyquil, 6 qcs-sdk-python, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "cirq-rigetti"; 12 pyproject = true; 13 inherit (cirq-core) version src; 14 15 sourceRoot = "${src.name}/${pname}"; 16 17 pythonRelaxDeps = [ 18 "pyquil" 19 "qcs-sdk-python" 20 ]; 21 22 postPatch = '' 23 # Remove outdated test 24 rm cirq_rigetti/service_test.py 25 ''; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 cirq-core 31 pyquil 32 qcs-sdk-python 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 disabledTestPaths = [ 38 # No need to test the version number 39 "cirq_rigetti/_version_test.py" 40 ]; 41 42 # cirq's importlib hook doesn't work here 43 #pythonImportsCheck = [ "cirq_rigetti" ]; 44 45 meta = { 46 inherit (cirq-core.meta) changelog license maintainers; 47 description = "Cirq package to simulate and connect to Rigetti quantum computers and Quil QVM"; 48 homepage = "https://github.com/quantumlib/Cirq/tree/main/cirq-rigetti"; 49 }; 50}