pythonPackages.flaskbabel: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 12:23:59 -04:00
parent 424082d2fb
commit 7008718bcf
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 30 additions and 17 deletions

View File

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, flask
, jinja2
, speaklater
, Babel
, pytz
}:
buildPythonPackage rec {
pname = "Flask-Babel";
version = "0.11.1";
src = fetchPypi {
inherit pname version;
sha256 = "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj";
};
propagatedBuildInputs = [ flask jinja2 speaklater Babel pytz ];
meta = with stdenv.lib; {
description = "Adds i18n/l10n support to Flask applications";
homepage = https://github.com/mitsuhiko/flask-babel;
license = licenses.bsd0;
maintainers = with maintainers; [ matejc ];
};
}

View File

@ -4334,23 +4334,7 @@ in {
first = callPackage ../development/python-modules/first {};
flaskbabel = buildPythonPackage rec {
name = "Flask-Babel-0.11.1";
src = pkgs.fetchurl {
url = "mirror://pypi/F/Flask-Babel/${name}.tar.gz";
sha256 = "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj";
};
propagatedBuildInputs = with self; [ flask jinja2 speaklater Babel pytz ];
meta = {
description = "Adds i18n/l10n support to Flask applications";
homepage = https://github.com/mitsuhiko/flask-babel;
license = "bsd";
maintainers = with maintainers; [ matejc ];
};
};
flaskbabel = callPackage ../development/python-modules/flaskbabel { };
speaklater = buildPythonPackage rec {
name = "speaklater-1.3";