1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 flit-core,
7 markdown-it-py,
8 pytest-regressions,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "mdit-py-plugins";
14 version = "0.4.2";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "executablebooks";
21 repo = "mdit-py-plugins";
22 tag = "v${version}";
23 hash = "sha256-aY2DMLh1OkWVcN6A29FLba1ETerf/EOqSjHVpsdE21M=";
24 };
25
26 nativeBuildInputs = [ flit-core ];
27
28 propagatedBuildInputs = [ markdown-it-py ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 pytest-regressions
33 ];
34
35 pythonImportsCheck = [ "mdit_py_plugins" ];
36
37 meta = with lib; {
38 description = "Collection of core plugins for markdown-it-py";
39 homepage = "https://github.com/executablebooks/mdit-py-plugins";
40 changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/v${version}/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = [ ];
43 };
44}