1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 mdformat,
7 mdit-py-plugins,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "mdformat-admon";
14 version = "2.1.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "KyleKing";
21 repo = "mdformat-admon";
22 tag = "v${version}";
23 hash = "sha256-y0TNyje2OXBY4oo9kBePlqSZAU36vbQQKZUPm/u6DAc=";
24 };
25
26 nativeBuildInputs = [ flit-core ];
27
28 propagatedBuildInputs = [
29 mdformat
30 mdit-py-plugins
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 meta = with lib; {
36 description = "Mdformat plugin for admonitions";
37 homepage = "https://github.com/KyleKing/mdformat-admon";
38 license = licenses.mit;
39 maintainers = with maintainers; [ aldoborrero ];
40 };
41}