nixpkgs/pkgs/development/python-modules/urllib3/default.nix
2019-10-21 09:27:09 +02:00

36 lines
998 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytest, mock, tornado, pyopenssl, cryptography
, idna, certifi, ipaddress, pysocks }:
buildPythonPackage rec {
pname = "urllib3";
version = "1.25.6";
src = fetchPypi {
inherit pname version;
sha256 = "9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86";
};
outputs = [ "out" "dev" ];
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;
};
}