pythonPackages.flaskbabel: refactor move to python-modules
This commit is contained in:
parent
424082d2fb
commit
7008718bcf
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal file
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user