Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 30 lines 857 B view raw
1{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k 2, nose, mock, blinker, pytest 3, flask, six, pytz, aniso8601, pycrypto 4}: 5 6buildPythonPackage rec { 7 pname = "Flask-RESTful"; 8 version = "0.3.8"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"; 13 }; 14 15 propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ]; 16 17 checkInputs = [ pytest nose mock blinker ]; 18 19 # test_reqparse.py: werkzeug move Multidict location (only imported in tests) 20 # handle_non_api_error isn't updated for addition encoding argument 21 checkPhase = '' 22 pytest --ignore=tests/test_reqparse.py -k 'not handle_non_api_error' 23 ''; 24 25 meta = with lib; { 26 homepage = "https://flask-restful.readthedocs.io/"; 27 description = "REST API building blocks for Flask"; 28 license = licenses.bsd3; 29 }; 30}