python3Packages.wagtail-localize: init at 1.5
This commit is contained in:
parent
61ddac6d5e
commit
5f25c053fa
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/wagtail-localize/default.nix
Normal file
59
pkgs/development/python-modules/wagtail-localize/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue