depot/third_party/nixpkgs/pkgs/development/python-modules/wikitextparser/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

44 lines
895 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, setuptools
, pytestCheckHook
, regex
, wcwidth
}:
buildPythonPackage rec {
pname = "wikitextparser";
version = "0.55.5";
format = "pyproject";
src = fetchFromGitHub {
owner = "5j9";
repo = "wikitextparser";
rev = "v${version}";
hash = "sha256-cmzyRbq4tCbuyrNnT0UYxoxuwXrFkIcWdrogSTfxSys=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
wcwidth
regex
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "wikitextparser" ];
meta = {
homepage = "https://github.com/5j9/wikitextparser";
description = "A simple parsing tool for MediaWiki's wikitext markup";
changelog = "https://github.com/5j9/wikitextparser/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ rapiteanu ];
};
}