python3Packages.wagtail-localize: init at 1.5

This commit is contained in:
Sylvain Fankhauser 2023-02-27 10:37:15 +01:00
parent 61ddac6d5e
commit 5f25c053fa
No known key found for this signature in database
GPG key ID: 4228AB9EC0612ADA
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ buildPythonPackage
, dj-database-url
, django
, django-rq
, fetchFromGitHub
, flit-core
, freezegun
, google-cloud-translate
, lib
, polib
, python
, typing-extensions
, wagtail
}:
buildPythonPackage rec {
pname = "wagtail-localize";
version = "1.5";
format = "pyproject";
src = fetchFromGitHub {
repo = pname;
owner = "wagtail";
rev = "v${version}";
sha256 = "sha256-aNz4OoUUXWMCahMxuYBxvNWnw7Inxd5svBgwLgoirW8=";
};
propagatedBuildInputs = [
django
wagtail
polib
typing-extensions
];
checkInputs = [
dj-database-url
django-rq
freezegun
google-cloud-translate
];
nativeBuildInputs = [ flit-core ];
passthru.optional-dependencies = {
google = [ google-cloud-translate ];
};
checkPhase = ''
${python.interpreter} testmanage.py test
'';
meta = with lib; {
description = "Translation plugin for Wagtail CMS";
homepage = "https://github.com/wagtail/wagtail-localize";
changelog = "https://github.com/wagtail/wagtail-localize/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ sephi ];
};
}

View file

@ -12399,6 +12399,8 @@ self: super: with self; {
wagtail-factories = callPackage ../development/python-modules/wagtail-factories { };
wagtail-localize = callPackage ../development/python-modules/wagtail-localize { };
waitress = callPackage ../development/python-modules/waitress { };
waitress-django = callPackage ../development/python-modules/waitress-django { };