Files
nixpkgs/pkgs/development/python-modules/mdit-py-plugins/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

45 lines
972 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
flit-core,
markdown-it-py,
pytest-regressions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mdit-py-plugins";
version = "0.4.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "executablebooks";
repo = "mdit-py-plugins";
tag = "v${version}";
hash = "sha256-aY2DMLh1OkWVcN6A29FLba1ETerf/EOqSjHVpsdE21M=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ markdown-it-py ];
nativeCheckInputs = [
pytestCheckHook
pytest-regressions
];
pythonImportsCheck = [ "mdit_py_plugins" ];
meta = {
description = "Collection of core plugins for markdown-it-py";
homepage = "https://github.com/executablebooks/mdit-py-plugins";
changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}