
Diff: https://github.com/lepture/mistune/compare/refs/tags/v3.1.2...v3.1.3 Changelog: https://github.com/lepture/mistune/blob/v3.1.3/docs/changes.rst
41 lines
900 B
Nix
41 lines
900 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mistune";
|
|
version = "3.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lepture";
|
|
repo = "mistune";
|
|
tag = "v${version}";
|
|
hash = "sha256-aD+c41nuSmLUoYzK8adP0eLYRU0FihHEqG4e0b0GZ9k=";
|
|
};
|
|
|
|
dependencies = lib.optionals (pythonOlder "3.11") [
|
|
typing-extensions
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|