depot/third_party/nixpkgs/pkgs/development/python-modules/qcs-api-client/default.nix

70 lines
1.2 KiB
Nix
Raw Normal View History

{ 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.20.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nSkCARZk6K5JMgiXunRBrb3pn5Ti6f493OOFzJYaW0M=";
};
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 ];
};
}