Files
nixpkgs/pkgs/development/python-modules/mdformat-toc/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

41 lines
910 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mdformat,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mdformat-toc";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "hukkin";
repo = "mdformat-toc";
tag = version;
hash = "sha256-3EX6kGez408tEYiR9VSvi3GTrb4ds+HJwpFflv77nkg=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ mdformat ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mdformat_toc" ];
meta = {
description = "Mdformat plugin to generate a table of contents";
homepage = "https://github.com/hukkin/mdformat-toc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
aldoborrero
polarmutex
];
broken = true; # broken test due to changes in mdformat; compare https://github.com/KyleKing/mdformat-admon/issues/25
};
}