2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k
|
2020-07-18 16:06:22 +00:00
|
|
|
, nose, mock, blinker, pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask, six, pytz, aniso8601, pycrypto
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-RESTful";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
checkInputs = [ pytest nose mock blinker ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# test_reqparse.py: werkzeug move Multidict location (only imported in tests)
|
|
|
|
# handle_non_api_error isn't updated for addition encoding argument
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore=tests/test_reqparse.py -k 'not handle_non_api_error'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://flask-restful.readthedocs.io/";
|
|
|
|
description = "REST API building blocks for Flask";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|