2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
parameterized,
|
|
|
|
pygments,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mistletoe";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.3.0";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miyuchina";
|
|
|
|
repo = "mistletoe";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MMBfH4q5AtC/azQUj1a1tMz1MdUf4ad5/tl7lcQCTOw=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mistletoe" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
parameterized
|
2024-04-21 15:54:59 +00:00
|
|
|
pygments
|
2023-03-15 16:39:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
description = "Fast and extensible Markdown parser";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mistletoe";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/miyuchina/mistletoe";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|