nixpkgs/pkgs/development/python-modules/urllib3/default.nix

34 lines
968 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, pytest, mock, tornado, pyopenssl, cryptography
, idna, certifi, ipaddress, pysocks }:
buildPythonPackage rec {
pname = "urllib3";
2020-02-06 15:16:25 +00:00
version = "1.25.8";
src = fetchPypi {
inherit pname version;
2020-02-06 15:16:25 +00:00
sha256 = "87716c2d2a7121198ebcb7ce7cccf6ce5e9ba539041cfbaeecfb641dc0bf6acc";
};
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;
};
}