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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
799 B
Nix
Raw Normal View History

2021-05-12 10:20:33 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, fpyutils
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "md-toc";
2022-01-30 20:11:10 +00:00
version = "8.1.1";
format = "setuptools";
2021-05-12 10:20:33 +01:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "frnmst";
repo = pname;
rev = version;
2022-01-30 20:11:10 +00:00
sha256 = "sha256-Dlqia+B7WJZlFGlIhgUWdND1qhSS/FOPoFH+uim6i8I=";
2021-05-12 10:20:33 +01:00
};
propagatedBuildInputs = [
fpyutils
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"md_toc/tests/*.py"
];
2021-05-12 10:20:33 +01:00
pythonImportsCheck = [
"md_toc"
];
2021-05-12 10:20:33 +01:00
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 ];
};
}