1{ lib
2, fetchPypi
3, buildPythonPackage
4, parameterized
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "mistletoe";
11 version = "1.2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-fQwas3RwR9Fp+fxLkl0cuj9cE+rwuQw2W3LkflnQCgI=";
19 };
20
21 pythonImportsCheck = [
22 "mistletoe"
23 ];
24
25 nativeCheckInputs = [
26 parameterized
27 pytestCheckHook
28 ];
29
30 meta = with lib; {
31 description = "Fast and extensible Markdown parser";
32 homepage = "https://github.com/miyuchina/mistletoe";
33 changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ eadwu ];
36 };
37}