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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.20.5";
|
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-nSkCARZk6K5JMgiXunRBrb3pn5Ti6f493OOFzJYaW0M=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|