depot/third_party/nixpkgs/pkgs/development/python-modules/mistletoe/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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 ];
};
}