tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mdformat-toc: init at 0.3.0
Aldo Borrero
2 years ago
0ee2fe15
d72ad7d4
+48
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
mdformat-toc
default.nix
top-level
python-packages.nix
+47
pkgs/development/python-modules/mdformat-toc/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, mdformat
5
5
+
, mdit-py-plugins
6
6
+
, poetry-core
7
7
+
, pytestCheckHook
8
8
+
, pythonOlder
9
9
+
}:
10
10
+
11
11
+
buildPythonPackage rec {
12
12
+
pname = "mdformat-toc";
13
13
+
version = "0.3.0";
14
14
+
format = "pyproject";
15
15
+
16
16
+
disabled = pythonOlder "3.7";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "hukkin";
20
20
+
repo = pname;
21
21
+
rev = "refs/tags/${version}";
22
22
+
hash = "sha256-3EX6kGez408tEYiR9VSvi3GTrb4ds+HJwpFflv77nkg=";
23
23
+
};
24
24
+
25
25
+
nativeBuildInputs = [
26
26
+
poetry-core
27
27
+
];
28
28
+
29
29
+
buildInputs = [
30
30
+
mdformat
31
31
+
];
32
32
+
33
33
+
nativeCheckInputs = [
34
34
+
pytestCheckHook
35
35
+
];
36
36
+
37
37
+
pythonImportsCheck = [
38
38
+
"mdformat_toc"
39
39
+
];
40
40
+
41
41
+
meta = with lib; {
42
42
+
description = "Mdformat plugin to generate a table of contents";
43
43
+
homepage = "https://github.com/hukkin/mdformat-toc";
44
44
+
license = licenses.mit;
45
45
+
maintainers = with maintainers; [ aldoborrero polarmutex ];
46
46
+
};
47
47
+
}
+1
pkgs/top-level/python-packages.nix
···
6219
6219
mdformat-nix-alejandra = callPackage ../development/python-modules/mdformat-nix-alejandra { };
6220
6220
mdformat-simple-breaks = callPackage ../development/python-modules/mdformat-simple-breaks { };
6221
6221
mdformat-tables = callPackage ../development/python-modules/mdformat-tables { };
6222
6222
+
mdformat-toc = callPackage ../development/python-modules/mdformat-toc { };
6222
6223
6223
6224
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };
6224
6225