2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
lib,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
regex,
|
|
|
|
wcwidth,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wikitextparser";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.55.13";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "5j9";
|
|
|
|
repo = "wikitextparser";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-qLctOX0BsKAn2JzfmV2sTLJ/KcNfaJFAjOB3pxd5LQI=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
flit-core
|
2023-10-09 19:29:22 +00:00
|
|
|
wcwidth
|
|
|
|
regex
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "wikitextparser" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/5j9/wikitextparser";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple parsing tool for MediaWiki's wikitext markup";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/5j9/wikitextparser/blob/v${version}/CHANGELOG.rst";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ rapiteanu ];
|
|
|
|
};
|
|
|
|
}
|