bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
43 lines
918 B
Nix
43 lines
918 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
lib,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
regex,
|
|
wcwidth,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wikitextparser";
|
|
version = "0.55.13";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "5j9";
|
|
repo = "wikitextparser";
|
|
rev = "v${version}";
|
|
hash = "sha256-qLctOX0BsKAn2JzfmV2sTLJ/KcNfaJFAjOB3pxd5LQI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
flit-core
|
|
wcwidth
|
|
regex
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "wikitextparser" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/5j9/wikitextparser";
|
|
description = "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 ];
|
|
};
|
|
}
|