41 lines
880 B
Nix
41 lines
880 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
parameterized,
|
|
pygments,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mistletoe";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miyuchina";
|
|
repo = "mistletoe";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jFU16vdASGVSPq+TJ/6cN7IGkE/61SL9BWCOPsVqNaU=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "mistletoe" ];
|
|
|
|
nativeCheckInputs = [
|
|
parameterized
|
|
pygments
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Fast and extensible Markdown parser";
|
|
mainProgram = "mistletoe";
|
|
homepage = "https://github.com/miyuchina/mistletoe";
|
|
changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|