forked from mirrors/nixpkgs
34 lines
953 B
Nix
34 lines
953 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
, idna, certifi, ipaddress, pysocks }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "urllib3";
|
|
version = "1.26.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08";
|
|
};
|
|
|
|
NOSE_EXCLUDE = lib.concatStringsSep "," [
|
|
"test_headers" "test_headerdict" "test_can_validate_ip_san" "test_delayed_body_read_timeout"
|
|
"test_timeout_errors_cause_retries" "test_select_multiple_interrupts_with_event"
|
|
];
|
|
|
|
checkPhase = ''
|
|
nosetests -v --cover-min-percentage 1
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ pytest mock tornado ];
|
|
propagatedBuildInputs = [ pyopenssl cryptography idna certifi ipaddress pysocks ];
|
|
|
|
meta = with lib; {
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
|
homepage = "https://github.com/shazow/urllib3";
|
|
license = licenses.mit;
|
|
};
|
|
}
|