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

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