python3Packages.mediawiki-langcodes: init at 0.2.18
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user