2017-06-16 19:55:48 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, blinker
|
|
|
|
, tzlocal
|
|
|
|
, mock
|
|
|
|
, rednose
|
|
|
|
, flask
|
|
|
|
, six
|
|
|
|
, jsonschema
|
|
|
|
, pytz
|
|
|
|
, aniso8601
|
|
|
|
, flask-restful
|
2018-11-24 13:40:37 +00:00
|
|
|
, isPy27
|
|
|
|
, enum34
|
2017-06-16 19:55:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-restplus";
|
2018-11-04 10:34:59 +00:00
|
|
|
version = "0.12.1";
|
2017-06-16 19:55:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:59 +00:00
|
|
|
sha256 = "3fad697e1d91dfc13c078abcb86003f438a751c5a4ff41b84c9050199d2eab62";
|
2017-06-16 19:55:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose blinker tzlocal mock rednose ];
|
2018-11-24 13:40:37 +00:00
|
|
|
propagatedBuildInputs = [ flask six jsonschema pytz aniso8601 flask-restful ]
|
|
|
|
++ lib.optional isPy27 enum34;
|
2017-06-16 19:55:48 +01:00
|
|
|
|
|
|
|
# RuntimeError: Working outside of application context.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/noirbizarre/flask-restplus;
|
2017-06-16 19:55:48 +01:00
|
|
|
description = "Fast, easy and documented API development with Flask";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|