weblate: 5.9.2 -> 5.10

Changelog: https://github.com/WeblateOrg/weblate/releases/tag/weblate-5.10
also compile messages during build

Changed files
+12 -9
pkgs
by-name
we
weblate
+12 -9
pkgs/by-name/we/weblate/package.nix
···
lib,
python3,
fetchFromGitHub,
+
gettext,
pango,
harfbuzz,
librsvg,
···
in
python.pkgs.buildPythonApplication rec {
pname = "weblate";
-
version = "5.9.2";
+
version = "5.10";
pyproject = true;
···
owner = "WeblateOrg";
repo = "weblate";
tag = "weblate-${version}";
-
hash = "sha256-/fsNQvIIgcTPZHHIwr8sruEJpPJTmXbevoxy1GPmOOU=";
+
hash = "sha256-DRodQb4IvLfpL+TzLigtiKTvXvGYbpa9Ej4+fCHSGmo=";
};
patches = [
···
./cache.lock.patch
];
-
build-system = with python.pkgs; [ setuptools ];
+
build-system = [ gettext ] ++ (with python.pkgs; [ setuptools ]);
+
+
nativeBuildInputs = [ gettext ];
# Build static files into a separate output
postBuild =
···
mkdir $static
cat weblate/settings_example.py ${staticSettings} > weblate/settings_static.py
export DJANGO_SETTINGS_MODULE="weblate.settings_static"
+
${python.pythonOnBuildForHost.interpreter} manage.py compilemessages
${python.pythonOnBuildForHost.interpreter} manage.py collectstatic --no-input
${python.pythonOnBuildForHost.interpreter} manage.py compress
'';
-
pythonRelaxDeps = [
-
"rapidfuzz"
-
];
-
dependencies =
with python.pkgs;
[
···
django-otp
django-otp-webauthn
django
+
djangorestframework-csv
djangorestframework
+
docutils
drf-spectacular
+
drf-standardized-errors
filelock
fluent-syntax
gitpython
hiredis
html2text
-
httpx
iniparse
jsonschema
lxml
···
++ django.optional-dependencies.argon2
++ python-redis-lock.optional-dependencies.django
++ celery.optional-dependencies.redis
-
++ drf-spectacular.optional-dependencies.sidecar;
+
++ drf-spectacular.optional-dependencies.sidecar
+
++ drf-standardized-errors.optional-dependencies.openapi;
optional-dependencies = {
postgres = with python.pkgs; [ psycopg ];