25 buildPythonPackage rec {
26 pname = "qcs-api-client";
30 disabled = pythonOlder "3.8";
32 src = fetchFromGitHub {
34 repo = "qcs-api-client-python";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-fVUvAXtZcMWBBK0wdGJA0oIneCNKI4GI2qNIc30HU9M=";
40 # Switch to poetry-core, https://github.com/rigetti/qcs-api-client-python/pull/2
42 name = "switch-to-poetry-core.patch";
43 url = "https://github.com/rigetti/qcs-api-client-python/commit/32f0b3c7070a65f4edf5b2552648d88435469e44.patch";
44 hash = "sha256-mOc+Q/5cmwPziojtxeEMWWHSDvqvzZlNRbPtOSeTinQ=";
55 build-system = [ poetry-core ];
78 # Tests are failing on Python 3.11, Fatal Python error: Aborted
79 doCheck = !(pythonAtLeast "3.11");
81 pythonImportsCheck = [ "qcs_api_client" ];
84 description = "Python library for accessing the Rigetti QCS API";
85 homepage = "https://qcs-api-client-python.readthedocs.io/";
86 changelog = "https://github.com/rigetti/qcs-api-client-python/releases/tag/v${version}";
87 license = licenses.asl20;
88 maintainers = with maintainers; [ fab ];