Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / flask-restful / default.nix
blobd5b48fd0428af6cf7e7c1ab8390e8db20576a5be
1 { lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k
2 , nose, mock, blinker, pytest
3 , flask, six, pytz, aniso8601, pycrypto
4 }:
6 buildPythonPackage rec {
7   pname = "Flask-RESTful";
8   version = "0.3.8";
10   src = fetchPypi {
11     inherit pname version;
12     sha256 = "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay";
13   };
15   propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ];
17   checkInputs = [ pytest nose mock blinker ];
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   '';
25   meta = with lib; {
26     homepage = "https://flask-restful.readthedocs.io/";
27     description = "REST API building blocks for Flask";
28     license = licenses.bsd3;
29   };