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 pname = "WSME";
31 inherit version;
32 sha256 = "bd2dfc715bedcc8f4649611bc0c8a238f483dc01cff7102bc1efa6bea207b64b";
33 };
34
35 nativeBuildInputs = [ pbr ];
36
37 propagatedBuildInputs = [
38 netaddr
39 pytz
40 simplegeneric
41 six
42 webob
43 ];
44
45 nativeCheckInputs = [
46 nose
47 cherrypy
48 flask
49 flask-restful
50 glibcLocales
51 pecan
52 sphinx
53 transaction
54 webtest
55 ];
56
57 # from tox.ini, tests don't work with pytest
58 checkPhase = ''
59 nosetests wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose
60 '';
61
62 meta = with lib; {
63 description = "Simplify the writing of REST APIs, and extend them with additional protocols";
64 homepage = "https://pythonhosted.org/WSME/";
65 changelog = "https://pythonhosted.org/WSME/changes.html";
66 license = licenses.mit;
67 };
68}