2017-06-16 20:55:48 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, blinker
|
|
|
|
, tzlocal
|
|
|
|
, mock
|
|
|
|
, rednose
|
|
|
|
, flask
|
|
|
|
, six
|
|
|
|
, jsonschema
|
|
|
|
, pytz
|
|
|
|
, aniso8601
|
|
|
|
, flask-restful
|
2018-11-24 14:40:37 +01:00
|
|
|
, isPy27
|
|
|
|
, enum34
|
2017-06-16 20:55:48 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-restplus";
|
2019-09-28 07:11:27 +02:00
|
|
|
version = "0.13.0";
|
2017-06-16 20:55:48 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 07:11:27 +02:00
|
|
|
sha256 = "0p4zz8b5bwbw7w0vhbyihl99d2gw13cb81rxzj4z626a1cnl8vm6";
|
2017-06-16 20:55:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose blinker tzlocal mock rednose ];
|
2018-11-24 14:40:37 +01:00
|
|
|
propagatedBuildInputs = [ flask six jsonschema pytz aniso8601 flask-restful ]
|
|
|
|
++ lib.optional isPy27 enum34;
|
2017-06-16 20:55:48 +02:00
|
|
|
|
|
|
|
# RuntimeError: Working outside of application context.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/noirbizarre/flask-restplus";
|
2017-06-16 20:55:48 +02:00
|
|
|
description = "Fast, easy and documented API development with Flask";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|