nixpkgs/pkgs/development/python-modules/webtest/default.nix
2018-12-03 16:50:36 +01:00

38 lines
733 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, webob
, six
, beautifulsoup4
, waitress
, mock
, pyquery
, wsgiproxy2
, PasteDeploy
, coverage
}:
buildPythonPackage rec {
version = "2.0.32";
pname = "webtest";
src = fetchPypi {
inherit pname version;
sha256 = "4221020d502ff414c5fba83c1213985b83219cb1cc611fe58aa4feaf96b5e062";
};
preConfigure = ''
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
'';
propagatedBuildInputs = [ nose webob six beautifulsoup4 waitress mock pyquery wsgiproxy2 PasteDeploy coverage ];
meta = with stdenv.lib; {
description = "Helper to test WSGI applications";
homepage = http://webtest.readthedocs.org/en/latest/;
license = licenses.mit;
};
}