python3Packages.weblate-schemas: 2025.6 -> 2026.4, use fetchFromGitHub

Changelog: https://github.com/WeblateOrg/weblate_schemas/blob/2026.4/CHANGES.rst
This commit is contained in:
R. Ryantm 2026-05-18 09:33:27 +00:00 committed by Kerstin Humm
commit f7923509f8
No known key found for this signature in database
GPG key ID: 40293358C7B9326B

View file

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