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