nixpkgs/pkgs/development/python-modules/flask/default.nix
2019-09-02 00:13:16 -07:00

29 lines
671 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, itsdangerous, click, werkzeug, jinja2, pytest }:
buildPythonPackage rec {
version = "1.0.4";
pname = "Flask";
src = fetchPypi {
inherit pname version;
sha256 = "ed1330220a321138de53ec7c534c3d90cf2f7af938c7880fc3da13aa46bf870f";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
checkPhase = ''
py.test
'';
# Tests require extra dependencies
doCheck = false;
meta = with stdenv.lib; {
homepage = http://flask.pocoo.org/;
description = "A microframework based on Werkzeug, Jinja 2, and good intentions";
license = licenses.bsd3;
};
}