Skip to content

Commit b02310a

Browse files
authored
python312Packages.mdformat-wikilink: init at 0.2.0 (#331006)
2 parents 975ebd1 + 0034d8f commit b02310a

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14615,6 +14615,12 @@
1461514615
githubId = 279868;
1461614616
name = "Matti Kariluoma";
1461714617
};
14618+
mattkang = {
14619+
email = "[email protected]";
14620+
github = "mattkang";
14621+
githubId = 2027430;
14622+
name = "Matthew Kang";
14623+
};
1461814624
mattpolzin = {
1461914625
email = "[email protected]";
1462014626
github = "mattpolzin";
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
@@ -8113,6 +8113,7 @@ self: super: with self; {
81138113
mdformat-simple-breaks = callPackage ../development/python-modules/mdformat-simple-breaks { };
81148114
mdformat-tables = callPackage ../development/python-modules/mdformat-tables { };
81158115
mdformat-toc = callPackage ../development/python-modules/mdformat-toc { };
8116+
mdformat-wikilink = callPackage ../development/python-modules/mdformat-wikilink { };
81168117

81178118
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };
81188119

0 commit comments

Comments
 (0)