nixpkgs/pkgs/development/python-modules/md-toc/default.nix
2022-04-05 11:57:51 +02:00

45 lines
799 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, fpyutils
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "md-toc";
version = "8.1.2";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "frnmst";
repo = pname;
rev = version;
sha256 = "sha256-EmhCZhxUCzBMqScPeawvcWmP9rrthow1vhTZachjCDI=";
};
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 ];
};
}