21 buildPythonPackage rec {
22 pname = "qcs-api-client";
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
30 repo = "qcs-api-client-python";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-gQow1bNRPhUm4zRu2T5FpcgOTcS2F1TQIz8WP1K0Xww=";
39 propagatedBuildInputs = [
58 # Switch to poetry-core, https://github.com/rigetti/qcs-api-client-python/pull/2
60 name = "switch-to-poetry-core.patch";
61 url = "https://github.com/rigetti/qcs-api-client-python/commit/32f0b3c7070a65f4edf5b2552648d88435469e44.patch";
62 hash = "sha256-mOc+Q/5cmwPziojtxeEMWWHSDvqvzZlNRbPtOSeTinQ=";
67 substituteInPlace pyproject.toml \
68 --replace 'attrs = "^20.1.0"' 'attrs = "*"' \
69 --replace 'httpx = "^0.15.0"' 'httpx = "*"' \
70 --replace 'iso8601 = "^0.1.13"' 'iso8601 = "*"' \
71 --replace 'pydantic = "^1.7.2"' 'pydantic = "*"' \
72 --replace 'pyjwt = "^1.7.1"' 'pyjwt = "*"'
77 "tests/test_client/test_additional_properties.py"
78 "tests/test_client/test_auth.py"
79 "tests/test_client/test_client.py"
80 "tests/test_client/test_datetime.py"
81 "tests/test_imports.py"
84 pythonImportsCheck = [
89 description = "Python library for accessing the Rigetti QCS API";
90 homepage = "https://qcs-api-client-python.readthedocs.io/";
91 license = licenses.asl20;
92 maintainers = with maintainers; [ fab ];