6ae7ad3cc5
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
33 lines
971 B
Nix
33 lines
971 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
, idna, certifi, ipaddress, pysocks }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "urllib3";
|
|
version = "1.25.11";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8d7eaa5a82a1cac232164990f04874c594c9453ec55eef02eab885aa02fc17a2";
|
|
};
|
|
|
|
NOSE_EXCLUDE = stdenv.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 stdenv.lib; {
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
|
homepage = "https://github.com/shazow/urllib3";
|
|
license = licenses.mit;
|
|
};
|
|
}
|