2017-09-05 02:16:41 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-09-06 08:31:38 -07:00
|
|
|
, itsdangerous, click, werkzeug, jinja2, pytest }:
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-09 03:01:48 -07:00
|
|
|
version = "1.1.2";
|
2017-09-05 02:16:41 -07:00
|
|
|
pname = "Flask";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 03:01:48 -07:00
|
|
|
sha256 = "4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060";
|
2017-09-05 02:16:41 -07:00
|
|
|
};
|
|
|
|
|
2017-09-06 08:31:38 -07:00
|
|
|
checkInputs = [ pytest ];
|
2017-09-05 02:16:41 -07:00
|
|
|
propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
|
|
|
|
|
2017-09-06 08:31:38 -07:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests require extra dependencies
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-09-05 02:16:41 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://flask.pocoo.org/";
|
2017-09-05 02:16:41 -07:00
|
|
|
description = "A microframework based on Werkzeug, Jinja 2, and good intentions";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|