1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonAtLeast
5, pbr
6, six
7, simplegeneric
8, netaddr
9, pytz
10, webob
11# Test inputs
12, cherrypy
13, flask
14, flask-restful
15, glibcLocales
16, nose
17, pecan
18, sphinx
19, transaction
20, webtest
21}:
22
23buildPythonPackage rec {
24 pname = "WSME";
25 version = "0.11.0";
26
27 disabled = pythonAtLeast "3.9";
28
29 src = fetchPypi {
30 inherit pname version;
31 sha256 = "bd2dfc715bedcc8f4649611bc0c8a238f483dc01cff7102bc1efa6bea207b64b";
32 };
33
34 nativeBuildInputs = [ pbr ];
35
36 propagatedBuildInputs = [
37 netaddr
38 pytz
39 simplegeneric
40 six
41 webob
42 ];
43
44 checkInputs = [
45 nose
46 cherrypy
47 flask
48 flask-restful
49 glibcLocales
50 pecan
51 sphinx
52 transaction
53 webtest
54 ];
55
56 # from tox.ini, tests don't work with pytest
57 checkPhase = ''
58 nosetests wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose
59 '';
60
61 meta = with lib; {
62 description = "Simplify the writing of REST APIs, and extend them with additional protocols";
63 homepage = "https://pythonhosted.org/WSME/";
64 changelog = "https://pythonhosted.org/WSME/changes.html";
65 license = licenses.mit;
66 };
67}