2017-09-05 11:16:41 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-09-05 11:04:42 +02:00
|
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
|
|
, idna, certifi, ipaddress, pysocks }:
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urllib3";
|
|
|
|
version = "1.22";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0kyvc9zdlxr5r96bng5rhm9a6sfqidrbvvkz64s76qs5267dli6c";
|
|
|
|
};
|
|
|
|
|
2017-09-27 11:25:50 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-05 11:16:41 +02:00
|
|
|
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;
|
|
|
|
|
2017-09-05 11:04:42 +02:00
|
|
|
checkInputs = [ pytest mock tornado ];
|
|
|
|
propagatedBuildInputs = [ pyopenssl cryptography idna certifi ipaddress pysocks ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-09-05 11:04:42 +02:00
|
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
|
|
|
homepage = https://github.com/shazow/urllib3;
|
2017-09-05 11:16:41 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|