67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
|
{ lib
|
||
|
, attrs
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, httpx
|
||
|
, iso8601
|
||
|
, pydantic
|
||
|
, pyjwt
|
||
|
, pytest-asyncio
|
||
|
, pytestCheckHook
|
||
|
, python-dateutil
|
||
|
, pythonOlder
|
||
|
, respx
|
||
|
, retrying
|
||
|
, rfc3339
|
||
|
, toml
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "qcs-api-client";
|
||
|
version = "0.8.0";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "1c0g3aa2pk4zd40banap2j797080qivd42q7imla2yvv6cvq24b8";
|
||
|
};
|
||
|
|
||
|
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;
|
||
|
|
||
|
pythonImportsCheck = [ "qcs_api_client" ];
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|