3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/md-toc/default.nix
2022-10-30 01:52:41 +02:00

48 lines
821 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fpyutils
, pyfakefs
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "md-toc";
version = "8.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "frnmst";
repo = pname;
rev = version;
hash = "sha256-jt2ZZV63s7LL0R9ay/tvMH3cIDElYXiNPBuHlxj/Z8E=";
};
propagatedBuildInputs = [
fpyutils
];
checkInputs = [
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/";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}