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 = "1.0.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "KyleKing";
18 repo = "mdformat-gfm-alerts";
19 tag = "v${version}";
20 hash = "sha256-2EYdNCyS1LxcEnCXkOugAAGx5XLWV4cWTNkXjR8RVQo=";
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/v${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ sigmanificient ];
40 broken = true; # broken test due to changes in mdformat; compare https://github.com/KyleKing/mdformat-admon/issues/25
41 };
42}