nixpkgs/pkgs/development/python-modules/urllib3/default.nix
Vladimír Čunát afd04a49ed
Revert "awscli: Get rid of runtime -dev dependencies"
This reverts commit c8bc18bcc2.
Moving to staging - it's quite a large rebuild (7-8k per platform),
which probably wasn't noticed; the change doesn't seem urgent.
2019-09-24 08:10:03 +02:00

34 lines
968 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytest, mock, tornado, pyopenssl, cryptography
, idna, certifi, ipaddress, pysocks }:
buildPythonPackage rec {
pname = "urllib3";
version = "1.24.3";
src = fetchPypi {
inherit pname version;
sha256 = "2393a695cd12afedd0dcb26fe5d50d0cf248e5a66f75dbd89a3d4eb333a61af4";
};
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;
};
}