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
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2020-09-25 04:45:31 +00:00
|
|
|
, 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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.12.1";
|
|
|
|
pyproject = true;
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-m36yJErzxwSskUte0iGVS7aK3QqLKy84okSwZ7M3mS0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|