pythonPackages.webtest: refactor move to python-modules
This commit is contained in:
parent
1d10b0c74a
commit
86c06938cb
37
pkgs/development/python-modules/webtest/default.nix
Normal file
37
pkgs/development/python-modules/webtest/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, webob
|
||||
, six
|
||||
, beautifulsoup4
|
||||
, waitress
|
||||
, mock
|
||||
, pyquery
|
||||
, wsgiproxy2
|
||||
, PasteDeploy
|
||||
, coverage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.20";
|
||||
pname = "webtest";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
@ -4119,38 +4119,7 @@ in {
|
||||
|
||||
websockify = callPackage ../development/python-modules/websockify { };
|
||||
|
||||
webtest = buildPythonPackage rec {
|
||||
version = "2.0.20";
|
||||
name = "webtest-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/W/WebTest/WebTest-${version}.tar.gz";
|
||||
sha256 = "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
nose
|
||||
webob
|
||||
six
|
||||
beautifulsoup4
|
||||
waitress
|
||||
mock
|
||||
pyquery
|
||||
wsgiproxy2
|
||||
PasteDeploy
|
||||
coverage
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Helper to test WSGI applications";
|
||||
homepage = http://webtest.readthedocs.org/en/latest/;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
webtest = callPackage ../development/python-modules/webtest { };
|
||||
|
||||
werkzeug = callPackage ../development/python-modules/werkzeug { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user