1{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2, nose, mock, blinker
3, flask, six, pytz, aniso8601, pycrypto
4}:
5
6buildPythonPackage rec {
7 name = "${pname}-${version}";
8 pname = "Flask-RESTful";
9 version = "0.3.6";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "01rlvl2iq074ciyn4schmjip7cyplkwkysbb8f610zil06am35ap";
14 };
15
16# TypeError: Only byte strings can be passed to C code
17 patchPhase = if isPy3k then ''
18 rm tests/test_crypto.py tests/test_paging.py
19 '' else null;
20 buildInputs = [ nose mock blinker ];
21 propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ];
22 PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
23
24 meta = with stdenv.lib; {
25 homepage = "http://flask-restful.readthedocs.io/";
26 description = "REST API building blocks for Flask";
27 license = licenses.bsd3;
28 };
29}