depot/third_party/nixpkgs/pkgs/development/python-modules/qcs-api-client/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

66 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 ];
};
}