ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / python-http-client / default.nix
blob78a3b018c7ea2071b08f6997b1d990674e7ed25b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "python_http_client";
11   version = "3.3.7";
12   format = "setuptools";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "sendgrid";
18     repo = "python-http-client";
19     rev = version;
20     sha256 = "sha256-8Qs5Jw0LMV2UucLnlFKJQ2PUhYaQx6uJdIV/4gaPH3w=";
21   };
23   checkInputs = [
24     mock
25     pytestCheckHook
26   ];
28   pythonImportsCheck = [
29     "python_http_client"
30   ];
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   };