Loading pkgs/by-name/we/weblate/package.nix +14 −12 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ let django = prev.django_5; }; }; python3Packages = python3.pkgs; GI_TYPELIB_PATH = lib.makeSearchPathOutput "out" "lib/girepository-1.0" [ pango Loading @@ -45,10 +46,9 @@ let gobject-introspection ]; in python.pkgs.buildPythonApplication rec { python3Packages.buildPythonApplication (finalAttrs: { pname = "weblate"; version = "5.15.2"; version = "5.16.2"; pyproject = true; outputs = [ Loading @@ -59,15 +59,15 @@ python.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "WeblateOrg"; repo = "weblate"; tag = "weblate-${version}"; hash = "sha256-qNv3aaPyQ/bOrPbK7u9vtq8R1MFqXLJzvLUZfVgjMK0="; tag = "weblate-${finalAttrs.version}"; hash = "sha256-er3KtCAFtHh3UtM58Kni/PTBfXpWW/GOarRGJeAanL8="; }; postPatch = '' sed -i 's|/bin/true|true|g' weblate/addons/example_pre.py ''; build-system = with python.pkgs; [ setuptools ]; build-system = with python3Packages; [ setuptools ]; nativeBuildInputs = [ gettext ]; Loading @@ -93,11 +93,12 @@ python.pkgs.buildPythonApplication rec { pythonRelaxDeps = [ "certifi" "crispy-bootstrap5" "urllib3" ]; dependencies = with python.pkgs; with python3Packages; [ aeidon ahocorasick-rs Loading Loading @@ -168,6 +169,7 @@ python.pkgs.buildPythonApplication rec { unidecode urllib3 user-agents weblate-fonts weblate-language-data weblate-schemas ] Loading @@ -180,7 +182,7 @@ python.pkgs.buildPythonApplication rec { ++ urllib3.optional-dependencies.zstd; # Commented entries are not packaged yet optional-dependencies = with python.pkgs; { optional-dependencies = with python3Packages; { alibaba = [ aliyun-python-sdk-alimt aliyun-python-sdk-core Loading Loading @@ -213,7 +215,7 @@ python.pkgs.buildPythonApplication rec { makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" ]; nativeCheckInputs = with python.pkgs; with python3Packages; [ pytestCheckHook postgresqlTestHook Loading Loading @@ -241,7 +243,7 @@ python.pkgs.buildPythonApplication rec { openssh ] ++ social-auth-core.optional-dependencies.saml ++ (lib.concatLists (builtins.attrValues optional-dependencies)); ++ (lib.concatLists (builtins.attrValues finalAttrs.passthru.optional-dependencies)); env = { CI_DATABASE = "postgresql"; Loading Loading @@ -287,7 +289,7 @@ python.pkgs.buildPythonApplication rec { meta = { description = "Web based translation tool with tight version control integration"; homepage = "https://weblate.org/"; changelog = "https://github.com/WeblateOrg/weblate/releases/tag/${src.tag}"; changelog = "https://github.com/WeblateOrg/weblate/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ gpl3Plus mit Loading @@ -296,4 +298,4 @@ python.pkgs.buildPythonApplication rec { maintainers = with lib.maintainers; [ erictapen ]; mainProgram = "weblate"; }; } }) pkgs/development/python-modules/tesserocr/default.nix +38 −31 Original line number Diff line number Diff line { buildPythonPackage, fetchPypi, fetchpatch, lib, buildPythonPackage, fetchFromGitHub, # build-system cysignals, cython, pkg-config, setuptools, # native dependencies pkg-config, leptonica, tesseract4, tesseract5, # dependencies pillow, # tests unittestCheckHook, pytestCheckHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "tesserocr"; version = "2.8.0"; format = "setuptools"; src = fetchPypi { inherit pname version; hash = "sha256-vlGNGxtf9UwRqtoeD9EpQlCepwWB4KizmipHOgstvTY="; version = "2.10.0"; pyproject = true; src = fetchFromGitHub { owner = "sirfz"; repo = "tesserocr"; tag = "v${finalAttrs.version}"; hash = "sha256-y/3MXkocO4hRMjREPT6yvqH87EZm79zerinp5TUHNP4="; }; patches = [ # Backport https://github.com/sirfz/tesserocr/pull/364 to fix tests (fetchpatch { url = "https://github.com/sirfz/tesserocr/commit/853a885d0154a0345e1ea7db80febe04893a3da8.patch"; hash = "sha256-s51s9EIV9AZT6UoqwTuQ8lOjToqwIIUkDLjsvCsyYFU="; }) ]; # https://github.com/sirfz/tesserocr/issues/314 postPatch = '' sed -i '/allheaders.h/a\ pass\n\ncdef extern from "leptonica/pix_internal.h" nogil:' tesserocr/tesseract.pxd substituteInPlace setup.py \ --replace-fail "Cython>=0.23,<3.1.0" Cython --replace-fail \ "Cython>=3.0.0,<3.2.0" \ "Cython" ''; build-system = [ cysignals cython pkg-config setuptools ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ leptonica tesseract4 tesseract5 ]; dependencies = [ pillow ]; dependencies = [ cysignals # also needed at runtime pillow ]; pythonImportsCheck = [ "tesserocr" ]; nativeCheckInputs = [ unittestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf tesserocr ''; disabledTests = [ # AssertionError: '.bl' != '.tif' "test_init_full" ]; meta = { changelog = "https://github.com/sirfz/tesserocr/releases/tag/v${version}"; description = "Simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)"; homepage = "https://github.com/sirfz/tesserocr"; changelog = "https://github.com/sirfz/tesserocr/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mtrsk ]; platforms = lib.platforms.unix; }; } }) pkgs/development/python-modules/translate-toolkit/default.nix +10 −9 Original line number Diff line number Diff line Loading @@ -7,10 +7,12 @@ setuptools-scm, # dependencies lxml, unicode-segmentation-rs, urllib3, # optional-dependencies tomlkit, lxml, # tests aeidon, Loading @@ -28,25 +30,24 @@ vobject, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "translate-toolkit"; version = "3.18.1"; version = "3.19.3"; pyproject = true; src = fetchFromGitHub { owner = "translate"; repo = "translate"; tag = version; hash = "sha256-T7Zo2/jx9P+Tz8jwRKRCV1lVv7XIaIoQTIjIVdEj/ZQ="; tag = finalAttrs.version; hash = "sha256-k+gCrY2r1ILeSvjdEHT3wE2LF9Qn76ENe9RRVcaHmq4="; }; build-system = [ setuptools-scm ]; dependencies = [ lxml unicode-segmentation-rs urllib3 lxml ]; optional-dependencies = { Loading Loading @@ -85,8 +86,8 @@ buildPythonPackage rec { meta = { description = "Useful localization tools for building localization & translation systems"; homepage = "https://toolkit.translatehouse.org/"; changelog = "https://docs.translatehouse.org/projects/translate-toolkit/en/latest/releases/${src.tag}.html"; changelog = "https://docs.translatehouse.org/projects/translate-toolkit/en/latest/releases/${finalAttrs.src.tag}.html"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ erictapen ]; }; } }) pkgs/development/python-modules/weblate-fonts/default.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, uv-build, }: buildPythonPackage (finalAttrs: { pname = "weblate-fonts"; version = "2026.1"; pyproject = true; src = fetchFromGitHub { owner = "WeblateOrg"; repo = "fonts"; tag = finalAttrs.version; hash = "sha256-JFnLi7ezme3yNo8e0Xjmvf/ejSaeTzzaJD5CMK4I9QM="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail \ "uv_build>=0.9.15,<0.10.0" \ "uv_build" ''; build-system = [ uv-build ]; pythonImportsCheck = [ "weblate_fonts" ]; meta = { description = "Weblate fonts collection"; homepage = "https://github.com/WeblateOrg/fonts"; changelog = "https://github.com/WeblateOrg/fonts/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ cc0 ofl ]; maintainers = with lib.maintainers; [ GaetanLepage ]; }; }) pkgs/development/python-modules/weblate-language-data/default.nix +10 −10 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools, translate-toolkit, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "weblate-language-data"; version = "2026.2"; version = "2026.3"; pyproject = true; src = fetchPypi { pname = "weblate_language_data"; inherit version; hash = "sha256-0mGkNbJomRRzS9P3fuUUGl7uipAfZhesoyc7t+Ymyf4="; src = fetchFromGitHub { owner = "WeblateOrg"; repo = "language-data"; tag = finalAttrs.version; hash = "sha256-v64YlcgHT94SCTGebR//Cnjj+NeH3TJZsXB8EztJk9s="; }; build-system = [ setuptools ]; Loading @@ -29,9 +30,8 @@ buildPythonPackage rec { meta = { description = "Language definitions used by Weblate"; homepage = "https://github.com/WeblateOrg/language-data"; changelog = "https://github.com/WeblateOrg/language-data/releases/tag/${version}"; changelog = "https://github.com/WeblateOrg/language-data/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ erictapen ]; }; } }) Loading
pkgs/by-name/we/weblate/package.nix +14 −12 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ let django = prev.django_5; }; }; python3Packages = python3.pkgs; GI_TYPELIB_PATH = lib.makeSearchPathOutput "out" "lib/girepository-1.0" [ pango Loading @@ -45,10 +46,9 @@ let gobject-introspection ]; in python.pkgs.buildPythonApplication rec { python3Packages.buildPythonApplication (finalAttrs: { pname = "weblate"; version = "5.15.2"; version = "5.16.2"; pyproject = true; outputs = [ Loading @@ -59,15 +59,15 @@ python.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "WeblateOrg"; repo = "weblate"; tag = "weblate-${version}"; hash = "sha256-qNv3aaPyQ/bOrPbK7u9vtq8R1MFqXLJzvLUZfVgjMK0="; tag = "weblate-${finalAttrs.version}"; hash = "sha256-er3KtCAFtHh3UtM58Kni/PTBfXpWW/GOarRGJeAanL8="; }; postPatch = '' sed -i 's|/bin/true|true|g' weblate/addons/example_pre.py ''; build-system = with python.pkgs; [ setuptools ]; build-system = with python3Packages; [ setuptools ]; nativeBuildInputs = [ gettext ]; Loading @@ -93,11 +93,12 @@ python.pkgs.buildPythonApplication rec { pythonRelaxDeps = [ "certifi" "crispy-bootstrap5" "urllib3" ]; dependencies = with python.pkgs; with python3Packages; [ aeidon ahocorasick-rs Loading Loading @@ -168,6 +169,7 @@ python.pkgs.buildPythonApplication rec { unidecode urllib3 user-agents weblate-fonts weblate-language-data weblate-schemas ] Loading @@ -180,7 +182,7 @@ python.pkgs.buildPythonApplication rec { ++ urllib3.optional-dependencies.zstd; # Commented entries are not packaged yet optional-dependencies = with python.pkgs; { optional-dependencies = with python3Packages; { alibaba = [ aliyun-python-sdk-alimt aliyun-python-sdk-core Loading Loading @@ -213,7 +215,7 @@ python.pkgs.buildPythonApplication rec { makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" ]; nativeCheckInputs = with python.pkgs; with python3Packages; [ pytestCheckHook postgresqlTestHook Loading Loading @@ -241,7 +243,7 @@ python.pkgs.buildPythonApplication rec { openssh ] ++ social-auth-core.optional-dependencies.saml ++ (lib.concatLists (builtins.attrValues optional-dependencies)); ++ (lib.concatLists (builtins.attrValues finalAttrs.passthru.optional-dependencies)); env = { CI_DATABASE = "postgresql"; Loading Loading @@ -287,7 +289,7 @@ python.pkgs.buildPythonApplication rec { meta = { description = "Web based translation tool with tight version control integration"; homepage = "https://weblate.org/"; changelog = "https://github.com/WeblateOrg/weblate/releases/tag/${src.tag}"; changelog = "https://github.com/WeblateOrg/weblate/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ gpl3Plus mit Loading @@ -296,4 +298,4 @@ python.pkgs.buildPythonApplication rec { maintainers = with lib.maintainers; [ erictapen ]; mainProgram = "weblate"; }; } })
pkgs/development/python-modules/tesserocr/default.nix +38 −31 Original line number Diff line number Diff line { buildPythonPackage, fetchPypi, fetchpatch, lib, buildPythonPackage, fetchFromGitHub, # build-system cysignals, cython, pkg-config, setuptools, # native dependencies pkg-config, leptonica, tesseract4, tesseract5, # dependencies pillow, # tests unittestCheckHook, pytestCheckHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "tesserocr"; version = "2.8.0"; format = "setuptools"; src = fetchPypi { inherit pname version; hash = "sha256-vlGNGxtf9UwRqtoeD9EpQlCepwWB4KizmipHOgstvTY="; version = "2.10.0"; pyproject = true; src = fetchFromGitHub { owner = "sirfz"; repo = "tesserocr"; tag = "v${finalAttrs.version}"; hash = "sha256-y/3MXkocO4hRMjREPT6yvqH87EZm79zerinp5TUHNP4="; }; patches = [ # Backport https://github.com/sirfz/tesserocr/pull/364 to fix tests (fetchpatch { url = "https://github.com/sirfz/tesserocr/commit/853a885d0154a0345e1ea7db80febe04893a3da8.patch"; hash = "sha256-s51s9EIV9AZT6UoqwTuQ8lOjToqwIIUkDLjsvCsyYFU="; }) ]; # https://github.com/sirfz/tesserocr/issues/314 postPatch = '' sed -i '/allheaders.h/a\ pass\n\ncdef extern from "leptonica/pix_internal.h" nogil:' tesserocr/tesseract.pxd substituteInPlace setup.py \ --replace-fail "Cython>=0.23,<3.1.0" Cython --replace-fail \ "Cython>=3.0.0,<3.2.0" \ "Cython" ''; build-system = [ cysignals cython pkg-config setuptools ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ leptonica tesseract4 tesseract5 ]; dependencies = [ pillow ]; dependencies = [ cysignals # also needed at runtime pillow ]; pythonImportsCheck = [ "tesserocr" ]; nativeCheckInputs = [ unittestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf tesserocr ''; disabledTests = [ # AssertionError: '.bl' != '.tif' "test_init_full" ]; meta = { changelog = "https://github.com/sirfz/tesserocr/releases/tag/v${version}"; description = "Simple, Pillow-friendly, wrapper around the tesseract-ocr API for Optical Character Recognition (OCR)"; homepage = "https://github.com/sirfz/tesserocr"; changelog = "https://github.com/sirfz/tesserocr/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mtrsk ]; platforms = lib.platforms.unix; }; } })
pkgs/development/python-modules/translate-toolkit/default.nix +10 −9 Original line number Diff line number Diff line Loading @@ -7,10 +7,12 @@ setuptools-scm, # dependencies lxml, unicode-segmentation-rs, urllib3, # optional-dependencies tomlkit, lxml, # tests aeidon, Loading @@ -28,25 +30,24 @@ vobject, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "translate-toolkit"; version = "3.18.1"; version = "3.19.3"; pyproject = true; src = fetchFromGitHub { owner = "translate"; repo = "translate"; tag = version; hash = "sha256-T7Zo2/jx9P+Tz8jwRKRCV1lVv7XIaIoQTIjIVdEj/ZQ="; tag = finalAttrs.version; hash = "sha256-k+gCrY2r1ILeSvjdEHT3wE2LF9Qn76ENe9RRVcaHmq4="; }; build-system = [ setuptools-scm ]; dependencies = [ lxml unicode-segmentation-rs urllib3 lxml ]; optional-dependencies = { Loading Loading @@ -85,8 +86,8 @@ buildPythonPackage rec { meta = { description = "Useful localization tools for building localization & translation systems"; homepage = "https://toolkit.translatehouse.org/"; changelog = "https://docs.translatehouse.org/projects/translate-toolkit/en/latest/releases/${src.tag}.html"; changelog = "https://docs.translatehouse.org/projects/translate-toolkit/en/latest/releases/${finalAttrs.src.tag}.html"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ erictapen ]; }; } })
pkgs/development/python-modules/weblate-fonts/default.nix 0 → 100644 +43 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, uv-build, }: buildPythonPackage (finalAttrs: { pname = "weblate-fonts"; version = "2026.1"; pyproject = true; src = fetchFromGitHub { owner = "WeblateOrg"; repo = "fonts"; tag = finalAttrs.version; hash = "sha256-JFnLi7ezme3yNo8e0Xjmvf/ejSaeTzzaJD5CMK4I9QM="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail \ "uv_build>=0.9.15,<0.10.0" \ "uv_build" ''; build-system = [ uv-build ]; pythonImportsCheck = [ "weblate_fonts" ]; meta = { description = "Weblate fonts collection"; homepage = "https://github.com/WeblateOrg/fonts"; changelog = "https://github.com/WeblateOrg/fonts/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ cc0 ofl ]; maintainers = with lib.maintainers; [ GaetanLepage ]; }; })
pkgs/development/python-modules/weblate-language-data/default.nix +10 −10 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools, translate-toolkit, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "weblate-language-data"; version = "2026.2"; version = "2026.3"; pyproject = true; src = fetchPypi { pname = "weblate_language_data"; inherit version; hash = "sha256-0mGkNbJomRRzS9P3fuUUGl7uipAfZhesoyc7t+Ymyf4="; src = fetchFromGitHub { owner = "WeblateOrg"; repo = "language-data"; tag = finalAttrs.version; hash = "sha256-v64YlcgHT94SCTGebR//Cnjj+NeH3TJZsXB8EztJk9s="; }; build-system = [ setuptools ]; Loading @@ -29,9 +30,8 @@ buildPythonPackage rec { meta = { description = "Language definitions used by Weblate"; homepage = "https://github.com/WeblateOrg/language-data"; changelog = "https://github.com/WeblateOrg/language-data/releases/tag/${version}"; changelog = "https://github.com/WeblateOrg/language-data/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ erictapen ]; }; } })