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