Commit d2ed0d37 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.weblate-fonts: init at 2026.1

parent 671d93e2
Loading
Loading
Loading
Loading
+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 ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -20877,6 +20877,8 @@ self: super: with self; {
  webio-api = callPackage ../development/python-modules/webio-api { };
  weblate-fonts = callPackage ../development/python-modules/weblate-fonts { };
  weblate-language-data = callPackage ../development/python-modules/weblate-language-data { };
  weblate-schemas = callPackage ../development/python-modules/weblate-schemas { };