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

29 lines
663 B
Nix
Raw Normal View History

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