ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
33 lines
966 B
Nix
33 lines
966 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
, idna, certifi, ipaddress, pysocks }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "urllib3";
|
|
version = "1.23";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a68ac5e15e76e7e5dd2b8f94007233e01effe3e50e8daddf69acfd81cb686baf";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|