cd7f78334e
Diff: https://github.com/frnmst/md-toc/compare/8.2.0...8.2.2 Changelog: https://blog.franco.net.eu.org/software/CHANGELOG-md-toc.html
48 lines
908 B
Nix
48 lines
908 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fpyutils
|
|
, pyfakefs
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "md-toc";
|
|
version = "8.2.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frnmst";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-fL3JlZWTEEinYILNeHw0cuvVza27atLLxjrBZkVLRiU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
fpyutils
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pyfakefs
|
|
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/";
|
|
changelog = "https://blog.franco.net.eu.org/software/CHANGELOG-md-toc.html";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|