nixpkgs/pkgs/development/python-modules/md-toc/default.nix

40 lines
761 B
Nix
Raw Normal View History

2021-05-12 09:20:33 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, fpyutils
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "md-toc";
2021-08-20 19:00:58 +00:00
version = "8.0.1";
2021-05-12 09:20:33 +00:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "frnmst";
repo = pname;
rev = version;
2021-08-20 19:00:58 +00:00
sha256 = "sha256-nh9KxjwF+O4n0qVo9yPP6fvKB5XFICh+Ak6oD2fQVdk=";
2021-05-12 09:20:33 +00: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 ];
};
}