2021-05-12 11:20:33 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fpyutils
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "md-toc";
|
2021-07-05 20:10:33 +02:00
|
|
|
version = "8.0.0";
|
2021-05-12 11:20:33 +02:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frnmst";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-05 20:10:33 +02:00
|
|
|
sha256 = "sha256-w5/oIeA9POth8bMszPH53RK1FM9PhmPdn4w9wxlqQ+g=";
|
2021-05-12 11:20:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fpyutils
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "md_toc/tests/*.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "md_toc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Table of contents generator for Markdown";
|
|
|
|
homepage = "https://docs.franco.net.eu.org/md-toc/";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|