Skip to content

Commit 0034d8f

Browse files
committed
python312Packages.mdformat-wikilink: init at 0.2.0
1 parent 876b7e2 commit 0034d8f

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
poetry-core,
6+
markdown-it-py,
7+
mdformat,
8+
pytestCheckHook,
9+
pytest-cov-stub,
10+
}:
11+
12+
buildPythonPackage 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+
}

pkgs/top-level/python-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7517,6 +7517,7 @@ self: super: with self; {
75177517
mdformat-simple-breaks = callPackage ../development/python-modules/mdformat-simple-breaks { };
75187518
mdformat-tables = callPackage ../development/python-modules/mdformat-tables { };
75197519
mdformat-toc = callPackage ../development/python-modules/mdformat-toc { };
7520+
mdformat-wikilink = callPackage ../development/python-modules/mdformat-wikilink { };
75207521

75217522
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };
75227523

0 commit comments

Comments
 (0)