1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 mdformat,
7 mdit-py-plugins,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "mdformat-gfm-alerts";
13 version = "2.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "KyleKing";
18 repo = "mdformat-gfm-alerts";
19 tag = "v${version}";
20 hash = "sha256-Hfi4Ek91G8WHAWjv7m52ZnT5Je9QyZT4yWSecaeTcvA=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [
26 mdformat
27 mdit-py-plugins
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "mdformat_gfm_alerts" ];
33
34 meta = {
35 description = "Format 'GitHub Markdown Alerts', which use blockquotes to render admonitions";
36 homepage = "https://github.com/KyleKing/mdformat-gfm-alerts";
37 changelog = "https://github.com/KyleKing/mdformat-gfm-alerts/releases/tag/${src.tag}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ sigmanificient ];
40 };
41}