Unverified Commit 595e5360 authored by Théo Bori's avatar Théo Bori Committed by Théo Bori
Browse files

python3Packages.mediawiki-langcodes: init at 0.2.18

parent 5e4cd43c
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };