Files
nixpkgs/pkgs/development/python-modules/mediawiki-langcodes/default.nix

38 lines
974 B
Nix

{
lib,
buildPythonPackage,
setuptools,
fetchPypi,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mediawiki-langcodes";
version = "0.2.23";
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-X4yWykEIBrdPnYQlzJ999lYI0v3PKUOjTH7aGyNx1n8=";
};
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 ];
};
})