weblate 0 -> 1 attrpath: weblate Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/y4h2clvq2pabgkwxbz91gx3jjsg5xgw6-packages.json.drv building '/nix/store/y4h2clvq2pabgkwxbz91gx3jjsg5xgw6-packages.json.drv'... Going to be running update for following packages: - weblate-5.6.2 Press Enter key to continue... Running update for: - weblate-5.6.2: UPDATING ... - weblate-5.6.2: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/we/weblate/package.nix b/pkgs/by-name/we/weblate/package.nix index 3b499ce31ada..d104e6bd080e 100644 --- a/pkgs/by-name/we/weblate/package.nix +++ b/pkgs/by-name/we/weblate/package.nix @@ -34,7 +34,7 @@ let in python.pkgs.buildPythonApplication rec { pname = "weblate"; - version = "5.6.2"; + version = "5.7"; pyproject = true; @@ -46,8 +46,8 @@ python.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "WeblateOrg"; repo = "weblate"; - rev = "weblate-${version}"; - sha256 = "sha256-t/hnigsKjdWCkUd8acNWhYVFmZ7oGn74+12347MkFgM="; + rev = "refs/tags/weblate-${version}"; + sha256 = "sha256-h5+0lOMD+H0ehtZ0bngA9bI5va1I5KjZH9boaEtXJPo="; }; patches = [ No auto update branch exists Old version 5.6.2" not present in master derivation file with contents: { lib, python3, fetchFromGitHub, pango, harfbuzz, librsvg, gdk-pixbuf, glib, borgbackup, writeText, nixosTests, }: let python = python3.override { packageOverrides = final: prev: { django = prev.django_5.overridePythonAttrs (old: { dependencies = old.dependencies ++ prev.django_5.optional-dependencies.argon2; }); sentry-sdk = prev.sentry-sdk_2; djangorestframework = prev.djangorestframework.overridePythonAttrs (old: { # https://github.com/encode/django-rest-framework/discussions/9342 disabledTests = (old.disabledTests or [ ]) ++ [ "test_invalid_inputs" ]; }); celery = prev.celery.overridePythonAttrs (old: { dependencies = old.dependencies ++ prev.celery.optional-dependencies.redis; }); python-redis-lock = prev.python-redis-lock.overridePythonAttrs (old: { dependencies = old.dependencies ++ prev.python-redis-lock.optional-dependencies.django; }); }; }; in python.pkgs.buildPythonApplication rec { pname = "weblate"; version = "5.7"; pyproject = true; outputs = [ "out" "static" ]; src = fetchFromGitHub { owner = "WeblateOrg"; repo = "weblate"; rev = "weblate-${version}"; sha256 = "sha256-h5+0lOMD+H0ehtZ0bngA9bI5va1I5KjZH9boaEtXJPo="; }; patches = [ # FIXME This shouldn't be necessary and probably has to do with some dependency mismatch. ./cache.lock.patch ]; build-system = with python.pkgs; [ setuptools ]; # Build static files into a separate output postBuild = let staticSettings = writeText "static_settings.py" '' DEBUG = False STATIC_ROOT = os.environ["static"] COMPRESS_OFFLINE = True # So we don't need postgres dependencies DATABASES = {} ''; in '' mkdir $static cat weblate/settings_example.py ${staticSettings} > weblate/settings_static.py export DJANGO_SETTINGS_MODULE="weblate.settings_static" ${python.pythonOnBuildForHost.interpreter} manage.py collectstatic --no-input ${python.pythonOnBuildForHost.interpreter} manage.py compress ''; dependencies = with python.pkgs; [ aeidon ahocorasick-rs borgbackup celery certifi charset-normalizer django-crispy-bootstrap3 cryptography cssselect cython cyrtranslit diff-match-patch django-appconf django-celery-beat django-compressor django-cors-headers django-crispy-forms django-filter django-redis django-otp django-otp-webauthn django djangorestframework filelock fluent-syntax gitpython hiredis html2text iniparse jsonschema lxml mistletoe nh3 openpyxl packaging phply pillow pycairo pygments pygobject3 pyicumessageformat pyparsing python-dateutil python-redis-lock qrcode rapidfuzz redis requests ruamel-yaml sentry-sdk siphashc social-auth-app-django social-auth-core tesserocr translate-toolkit translation-finder user-agents weblate-language-data weblate-schemas ]; optional-dependencies = { postgres = with python.pkgs; [ psycopg ]; }; # We don't just use wrapGAppsNoGuiHook because we need to expose GI_TYPELIB_PATH GI_TYPELIB_PATH = lib.makeSearchPathOutput "out" "lib/girepository-1.0" [ pango harfbuzz librsvg gdk-pixbuf glib ]; makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" ]; passthru = { inherit python; # We need to expose this so weblate can work outside of calling its bin output inherit GI_TYPELIB_PATH; tests = { inherit (nixosTests) weblate; }; }; meta = with lib; { description = "Web based translation tool with tight version control integration"; homepage = "https://weblate.org/"; license = licenses.gpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ erictapen ]; }; }