Merge pull request #175281 from fabaff/wsgiproxy2-bump
python310Packages.wsgiproxy2: 0.4.2 -> 0.5.1
This commit is contained in:
commit
340512fb4f
2 changed files with 42 additions and 34 deletions
|
@ -1,55 +1,54 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, beautifulsoup4
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
|
||||||
, webob
|
|
||||||
, six
|
|
||||||
, beautifulsoup4
|
|
||||||
, waitress
|
|
||||||
, pyquery
|
|
||||||
, wsgiproxy2
|
|
||||||
, pastedeploy
|
, pastedeploy
|
||||||
|
, pyquery
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
|
, waitress
|
||||||
|
, webob
|
||||||
|
, wsgiproxy2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "3.0.0";
|
|
||||||
pname = "webtest";
|
pname = "webtest";
|
||||||
disabled = isPy27; # paste.deploy is not longer a valid import
|
version = "3.0.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "WebTest";
|
pname = "WebTest";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "54bd969725838d9861a9fa27f8d971f79d275d94ae255f5c501f53bb6d9929eb";
|
hash = "sha256-VL2WlyWDjZhhqfon+Nlx950nXZSuJV9cUB9Tu22ZKes=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py --replace "nose<1.3.0" "nose"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
webob
|
|
||||||
six
|
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
six
|
||||||
waitress
|
waitress
|
||||||
|
webob
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
|
||||||
pastedeploy
|
pastedeploy
|
||||||
wsgiproxy2
|
|
||||||
pyquery
|
pyquery
|
||||||
|
pytestCheckHook
|
||||||
|
wsgiproxy2
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some of the tests use localhost networking.
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
pythonImportsCheck = [ "webtest" ];
|
pythonImportsCheck = [
|
||||||
|
"webtest"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Helper to test WSGI applications";
|
description = "Helper to test WSGI applications";
|
||||||
homepage = "https://webtest.readthedocs.org/en/latest/";
|
homepage = "https://webtest.readthedocs.org/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,30 +1,39 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, six
|
|
||||||
, webob
|
, webob
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "WSGIProxy2";
|
pname = "wsgiproxy2";
|
||||||
version = "0.4.2";
|
version = "0.5.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
extension = "zip";
|
src = fetchFromGitHub {
|
||||||
sha256 = "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4";
|
owner = "gawel";
|
||||||
|
repo = "WSGIProxy2";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-ouofw3cBQzBwSh3Pdtdl7KI2pg/T/z3qoh8zoeiKiSs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six webob ];
|
propagatedBuildInputs = [
|
||||||
|
webob
|
||||||
|
];
|
||||||
|
|
||||||
# circular dep on webtest
|
# Circular dependency on webtest
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"wsgiproxy"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://pythonpaste.org/wsgiproxy/";
|
|
||||||
description = "HTTP proxying tools for WSGI apps";
|
description = "HTTP proxying tools for WSGI apps";
|
||||||
|
homepage = "https://wsgiproxy2.readthedocs.io/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ domenkozar ];
|
maintainers = with maintainers; [ domenkozar ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue