depot/third_party/nixpkgs/pkgs/development/python-modules/mistune/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
858 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 ];
};
}