2017-09-05 09:16:41 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-09-06 15:31:38 +00:00
|
|
|
, itsdangerous, click, werkzeug, jinja2, pytest }:
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-05-30 06:49:49 +00:00
|
|
|
version = "1.0.3";
|
2017-09-05 09:16:41 +00:00
|
|
|
pname = "Flask";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-30 06:49:49 +00:00
|
|
|
sha256 = "ad7c6d841e64296b962296c2c2dabc6543752985727af86a975072dea984b6f3";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
2017-09-06 15:31:38 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-09-05 09:16:41 +00:00
|
|
|
propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
|
|
|
|
|
2017-09-06 15:31:38 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests require extra dependencies
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-09-05 09:16:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://flask.pocoo.org/;
|
|
|
|
description = "A microframework based on Werkzeug, Jinja 2, and good intentions";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|