3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/webtest/default.nix

45 lines
917 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, nose
, webob
, six
, beautifulsoup4
, waitress
, mock
, pyquery
, wsgiproxy2
, PasteDeploy
}:
buildPythonPackage rec {
2018-11-04 10:35:21 +00:00
version = "2.0.32";
pname = "webtest";
disabled = isPy27; # paste.deploy is not longer a valid import
src = fetchPypi {
2018-12-03 10:30:07 +00:00
pname = "WebTest";
inherit version;
2018-11-04 10:35:21 +00:00
sha256 = "4221020d502ff414c5fba83c1213985b83219cb1cc611fe58aa4feaf96b5e062";
};
preConfigure = ''
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
'';
2018-12-03 10:30:07 +00:00
propagatedBuildInputs = [ webob six beautifulsoup4 waitress ];
checkInputs = [ nose mock PasteDeploy wsgiproxy2 pyquery ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
description = "Helper to test WSGI applications";
homepage = "https://webtest.readthedocs.org/en/latest/";
license = licenses.mit;
};
}