Files
nixpkgs/pkgs/development/python-modules/md-toc/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
976 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fpyutils,
pyfakefs,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "md-toc";
version = "8.2.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "frnmst";
repo = "md-toc";
tag = version;
hash = "sha256-nKkKtLEW0pohXiMtjWl2Kzh7SRwZJ/yzhXpDyluLodc=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ fpyutils ];
nativeCheckInputs = [
pyfakefs
pytestCheckHook
];
enabledTestPaths = [ "md_toc/tests/*.py" ];
pythonImportsCheck = [ "md_toc" ];
meta = {
description = "Table of contents generator for Markdown";
mainProgram = "md_toc";
homepage = "https://docs.franco.net.eu.org/md-toc/";
changelog = "https://blog.franco.net.eu.org/software/CHANGELOG-md-toc.html";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}