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