nixpkgs/pkgs/development/python-modules/flask-restplus/default.nix

45 lines
838 B
Nix
Raw Normal View History

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";
version = "0.13.0";
2017-06-16 19:55:48 +01:00
src = fetchPypi {
inherit pname version;
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 = {
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;
};
}