1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/development/python-modules/urllib3/default.nix
Robin Gloster d0d992a9a0
urllib3: revert multiple outputs
only moved propagated build inputs to dev which broke packages depending
on it e.g. glusterfs

cc @edolstra
2017-09-27 17:11:14 +02:00

35 lines
986 B
Nix

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