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