Files
nixpkgs/pkgs/development/python-modules/mistune/default.nix

35 lines
782 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "mistune";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "lepture";
repo = "mistune";
tag = "v${version}";
hash = "sha256-rUEZNVuMT5+GsMakrkK6rshKSKtTTN72kK92AmQ8bl8=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mistune" ];
meta = {
changelog = "https://github.com/lepture/mistune/blob/${src.tag}/docs/changes.rst";
description = "Sane Markdown parser with useful plugins and renderers";
homepage = "https://github.com/lepture/mistune";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ dotlambda ];
};
}