2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, httpx
|
|
|
|
, iso8601
|
|
|
|
, pydantic
|
|
|
|
, pyjwt
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
, respx
|
|
|
|
, retrying
|
|
|
|
, rfc3339
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qcs-api-client";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "0.20.7";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-07 04:07:37 +00:00
|
|
|
sha256 = "64f3ee91cb9424ac1f27a2e13a4d03090a57d2e0e5edf6981a0b4e5295844c81";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
httpx
|
|
|
|
iso8601
|
|
|
|
pydantic
|
|
|
|
pyjwt
|
|
|
|
python-dateutil
|
|
|
|
retrying
|
|
|
|
rfc3339
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
respx
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "attrs>=20.1.0,<21.0.0" "attrs" \
|
|
|
|
--replace "httpx>=0.15.0,<0.16.0" "httpx" \
|
|
|
|
--replace "pyjwt>=1.7.1,<2.0.0" "pyjwt"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qcs_api_client"
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for accessing the Rigetti QCS API";
|
|
|
|
homepage = "https://pypi.org/project/qcs-api-client/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|