1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 markdown-it-py,
7 mdformat,
8 pytestCheckHook,
9 pytest-cov-stub,
10}:
11
12buildPythonPackage rec {
13 pname = "mdformat-wikilink";
14 version = "0.2.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "tmr232";
19 repo = "mdformat-wikilink";
20 tag = "v${version}";
21 hash = "sha256-KOPh9iZfb3GCvslQeYBgqNaOyqtWi2llkaiWE7nmcJo=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 markdown-it-py
28 mdformat
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-cov-stub
34 ];
35
36 pythonImportsCheck = [ "mdformat_wikilink" ];
37
38 meta = {
39 description = "Mdformat plugin for ensuring that wiki-style links are preserved during formatting";
40 homepage = "https://github.com/tmr232/mdformat-wikilink";
41 changelog = "https://github.com/tmr232/mdformat-wikilink/releases/tag/v${version}";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ mattkang ];
44 };
45}