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";
|
2019-09-28 06:11:27 +01:00
|
|
|
version = "0.13.0";
|
2017-06-16 19:55:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 06:11:27 +01:00
|
|
|
sha256 = "0p4zz8b5bwbw7w0vhbyihl99d2gw13cb81rxzj4z626a1cnl8vm6";
|
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;
|
|
|
|
};
|
|
|
|
}
|