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 ]; }; -} +})