python3Packages.mediawiki-langcodes: init at 0.2.18

This commit is contained in:
Théo Bori
2026-03-28 01:56:32 +01:00
committed by Théo Bori
parent 5e4cd43cb3
commit 595e53600f
2 changed files with 39 additions and 0 deletions
@@ -0,0 +1,37 @@
{
lib,
buildPythonPackage,
setuptools,
fetchPypi,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mediawiki-langcodes";
version = "0.2.18";
pyproject = true;
# Using fetchPypi instead of fetching from source for technical reason.
# It required Internet and Python scripts to build the database.
src = fetchPypi {
pname = "mediawiki_langcodes";
inherit (finalAttrs) version;
hash = "sha256-9wHlISFD2Pc4qA+kAGR2yRXRby6NGkQRTOoamaoFCxU=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "mediawiki_langcodes" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Convert MediaWiki language names and language codes";
homepage = "https://github.com/xxyzz/mediawiki_langcodes";
changelog = "https://github.com/xxyzz/mediawiki_langcodes/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ theobori ];
};
})
+2
View File
@@ -9687,6 +9687,8 @@ self: super: with self; {
mediapy = callPackage ../development/python-modules/mediapy { };
mediawiki-langcodes = callPackage ../development/python-modules/mediawiki-langcodes { };
medpy = callPackage ../development/python-modules/medpy { };
medvol = callPackage ../development/python-modules/medvol { };