2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python_http_client";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "3.3.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sendgrid";
|
|
|
|
repo = "python-http-client";
|
|
|
|
rev = version;
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "0z7nvfq9wdcprwh88xn9p3vm15gb3ijdc8pxn0a133ini9hxxlpx";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Failure was fixed by https://github.com/sendgrid/python-http-client/commit/6d62911ab0d0645b499e14bb17c302b48f3c10e4
|
|
|
|
disabledTests = [ "test__daterange" ];
|
|
|
|
pythonImportsCheck = [ "python_http_client" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python HTTP library to call APIs";
|
|
|
|
homepage = "https://github.com/sendgrid/python-http-client";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|