2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 17:05:55 +00:00
|
|
|
, pythonAtLeast
|
2020-09-25 04:45:31 +00:00
|
|
|
, pbr
|
|
|
|
, six
|
|
|
|
, simplegeneric
|
|
|
|
, netaddr
|
|
|
|
, pytz
|
|
|
|
, webob
|
|
|
|
# Test inputs
|
|
|
|
, cherrypy
|
|
|
|
, flask
|
|
|
|
, flask-restful
|
|
|
|
, glibcLocales
|
|
|
|
, nose
|
|
|
|
, pecan
|
|
|
|
, sphinx
|
|
|
|
, transaction
|
|
|
|
, webtest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "wsme";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
disabled = pythonAtLeast "3.9";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "WSME";
|
|
|
|
inherit version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "bd2dfc715bedcc8f4649611bc0c8a238f483dc01cff7102bc1efa6bea207b64b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
netaddr
|
|
|
|
pytz
|
|
|
|
simplegeneric
|
|
|
|
six
|
|
|
|
webob
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
nose
|
|
|
|
cherrypy
|
|
|
|
flask
|
|
|
|
flask-restful
|
|
|
|
glibcLocales
|
|
|
|
pecan
|
|
|
|
sphinx
|
|
|
|
transaction
|
|
|
|
webtest
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# from tox.ini, tests don't work with pytest
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://pythonhosted.org/WSME/";
|
|
|
|
changelog = "https://pythonhosted.org/WSME/changes.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|