1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "python-http-client";
12 version = "3.3.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "sendgrid";
19 repo = "python-http-client";
20 rev = version;
21 hash = "sha256-8Qs5Jw0LMV2UucLnlFKJQ2PUhYaQx6uJdIV/4gaPH3w=";
22 };
23
24 nativeCheckInputs = [
25 mock
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 # checks date in license file and subsequently fails after new years
31 "test_daterange"
32 ];
33
34 pythonImportsCheck = [ "python_http_client" ];
35
36 meta = with lib; {
37 description = "Python HTTP library to call APIs";
38 homepage = "https://github.com/sendgrid/python-http-client";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}