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