linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / python-http-client / default.nix
blobf4b19ba379e4e3fe50228ab17671947e40f6cef6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "python_http_client";
10   version = "3.3.1";
12   src = fetchFromGitHub {
13     owner = "sendgrid";
14     repo = "python-http-client";
15     rev = version;
16     sha256 = "0mbcg0vb9v41v7hbvycrxx5wyrf3ysvfgxkix8hn8c4x5l2lmidc";
17   };
19   checkInputs = [
20     mock
21     pytestCheckHook
22   ];
24   # Failure was fixed by https://github.com/sendgrid/python-http-client/commit/6d62911ab0d0645b499e14bb17c302b48f3c10e4
25   disabledTests = [ "test__daterange" ];
26   pythonImportsCheck = [ "python_http_client" ];
28   meta = with lib; {
29     description = "Python HTTP library to call APIs";
30     homepage = "https://github.com/sendgrid/python-http-client";
31     license = with licenses; [ mit ];
32     maintainers = with maintainers; [ fab ];
33   };