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