evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / python-http-client / default.nix
blob7d303d71ef012ac20cfeb5792629ae50237d0896
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   mock,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "python-http-client";
12   version = "3.3.7";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "sendgrid";
19     repo = "python-http-client";
20     rev = version;
21     hash = "sha256-8Qs5Jw0LMV2UucLnlFKJQ2PUhYaQx6uJdIV/4gaPH3w=";
22   };
24   nativeCheckInputs = [
25     mock
26     pytestCheckHook
27   ];
29   disabledTests = [
30     # checks date in license file and subsequently fails after new years
31     "test_daterange"
32   ];
34   pythonImportsCheck = [ "python_http_client" ];
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   };