From b6714f59cce26ddc831ca4a213e8f56476184fb1 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Mon, 10 Sep 2018 18:33:48 +0200 Subject: initial commit --- .../development/python-modules/urllib3/default.nix | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/urllib3/default.nix (limited to 'pkgs/development/python-modules/urllib3/default.nix') diff --git a/pkgs/development/python-modules/urllib3/default.nix b/pkgs/development/python-modules/urllib3/default.nix new file mode 100644 index 0000000..424404f --- /dev/null +++ b/pkgs/development/python-modules/urllib3/default.nix @@ -0,0 +1,34 @@ +{ stdenv, buildPythonPackage, fetchPypi +, pytest, mock, tornado, pyopenssl, cryptography +, idna, certifi, ipaddress, pysocks }: + +buildPythonPackage rec { + pname = "urllib3"; + version = "1.23"; + format = "wheel"; + + src = fetchPypi { + inherit pname version format; + sha256 = "1d8ps62yc51c71a8bq1yx99nfmq6r0qf12bfwsq2lhmssh5mlwmm"; + }; + + 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; + }; +} -- cgit v1.2.3