mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 01:46:30 +00:00
76af9e8438
This reverts commit a1eacb900e
.
Adding dev outputs to python packages means they can't be included in
a Python environment created with python3.withPackages, because
makePythonPath will include the dev output, which is empty apart from
nix-support, rather than the out output, which contains all the Python
code.
34 lines
968 B
Nix
34 lines
968 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
, idna, certifi, ipaddress, pysocks }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "urllib3";
|
|
version = "1.25.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|