1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fpyutils
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "md-toc";
11 version = "8.0.1";
12 disabled = pythonOlder "3.5";
13
14 src = fetchFromGitHub {
15 owner = "frnmst";
16 repo = pname;
17 rev = version;
18 sha256 = "sha256-nh9KxjwF+O4n0qVo9yPP6fvKB5XFICh+Ak6oD2fQVdk=";
19 };
20
21 propagatedBuildInputs = [
22 fpyutils
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 pytestFlagsArray = [ "md_toc/tests/*.py" ];
30
31 pythonImportsCheck = [ "md_toc" ];
32
33 meta = with lib; {
34 description = "Table of contents generator for Markdown";
35 homepage = "https://docs.franco.net.eu.org/md-toc/";
36 license = with licenses; [ gpl3Plus ];
37 maintainers = with maintainers; [ fab ];
38 };
39}