21 , types-python-dateutil
25 buildPythonPackage rec {
30 disabled = pythonOlder "3.7";
32 src = fetchFromGitHub {
36 hash = "sha256-Ur7dRxmnaAWXHk7c6NC3lBw59RRgh9vwAHFW00fViD4=";
43 propagatedBuildInputs = [
53 ] ++ lib.optionals (pythonOlder "3.8") [
68 substituteInPlace pyproject.toml \
69 --replace 'lark = "^0.11.1"' 'lark = "*"' \
70 --replace 'qcs-api-client = ">=0.8.1,<0.21.0"' 'qcs-api-client = "*"'
74 # Tests require network access
76 "test/unit/test_api.py"
77 "test/unit/test_engagement_manager.py"
78 "test/unit/test_operator_estimation.py"
79 "test/unit/test_wavefunction_simulator.py"
80 "test/unit/test_compatibility_v2_operator_estimation.py"
81 "test/unit/test_compatibility_v2_quantum_computer.py"
82 "test/unit/test_compatibility_v2_qvm.py"
83 "test/unit/test_quantum_computer.py"
84 "test/unit/test_qvm.py"
85 "test/unit/test_reference_wavefunction.py"
87 "test/unit/test_qpu_client.py"
91 "test_compile_with_quilt_calibrations"
92 "test_sets_timeout_on_requests"
93 # sensitive to lark parser output
94 "test_memory_commands"
98 pythonImportsCheck = [
103 description = "Python library for creating Quantum Instruction Language (Quil) programs";
104 homepage = "https://github.com/rigetti/pyquil";
105 license = licenses.asl20;
106 maintainers = with maintainers; [ fab ];