mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
0215034f25
when they already rely on SRI hashes.
44 lines
864 B
Nix
44 lines
864 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-http-client";
|
|
version = "3.3.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sendgrid";
|
|
repo = "python-http-client";
|
|
rev = version;
|
|
hash = "sha256-8Qs5Jw0LMV2UucLnlFKJQ2PUhYaQx6uJdIV/4gaPH3w=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# checks date in license file and subsequently fails after new years
|
|
"test_daterange"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"python_http_client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python HTTP library to call APIs";
|
|
homepage = "https://github.com/sendgrid/python-http-client";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|