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