From f7923509f8a86ff9bda102a9b89d421b7b78d5b2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 May 2026 09:33:27 +0000 Subject: [PATCH] python3Packages.weblate-schemas: 2025.6 -> 2026.4, use fetchFromGitHub Changelog: https://github.com/WeblateOrg/weblate_schemas/blob/2026.4/CHANGES.rst --- .../weblate-schemas/default.nix | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/weblate-schemas/default.nix b/pkgs/development/python-modules/weblate-schemas/default.nix index 875ad8802fbe..5de6969fd76b 100644 --- a/pkgs/development/python-modules/weblate-schemas/default.nix +++ b/pkgs/development/python-modules/weblate-schemas/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, setuptools, fqdn, jsonschema, @@ -11,30 +11,28 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "weblate-schemas"; - version = "2025.6"; + version = "2026.4"; pyproject = true; - src = fetchPypi { - pname = "weblate_schemas"; - inherit version; - hash = "sha256-Kxu+8CiJ343PmCdY5rSbTqsWmVMLnz9inAH726g5TQQ="; + src = fetchFromGitHub { + owner = "WeblateOrg"; + repo = "weblate_schemas"; + tag = finalAttrs.version; + hash = "sha256-OPuhRsUmVte54UPNna76N5Kbg1Tl7p8OdKbE6VHWcvg="; }; build-system = [ setuptools ]; dependencies = [ - fqdn jsonschema - rfc3987 - strict-rfc3339 ]; nativeCheckInputs = [ - fedora-messaging pytestCheckHook + fedora-messaging ] ++ jsonschema.optional-dependencies.format; @@ -43,9 +41,9 @@ buildPythonPackage rec { meta = { description = "Schemas used by Weblate"; homepage = "https://github.com/WeblateOrg/weblate_schemas"; - changelog = "https://github.com/WeblateOrg/weblate_schemas/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/WeblateOrg/weblate_schemas/blob/${finalAttrs.version}/CHANGES.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ erictapen ]; }; -} +})