depot/third_party/nixpkgs/pkgs/development/python-modules/mistune/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
854 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "mistune";
version = "3.0.2";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "lepture";
repo = "mistune";
rev = "refs/tags/v${version}";
hash = "sha256-OoTiqJ7hsFP1Yx+7xW3rL+Yc/O2lCMdhBBbaZucyZXM=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mistune" ];
meta = with lib; {
changelog = "https://github.com/lepture/mistune/blob/${src.rev}/docs/changes.rst";
description = "A sane Markdown parser with useful plugins and renderers";
homepage = "https://github.com/lepture/mistune";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}