Files
nixpkgs/pkgs/development/python-modules/mdformat-wikilink/default.nix
T
2025-10-23 11:03:06 +00:00

46 lines
981 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
markdown-it-py,
mdformat,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "mdformat-wikilink";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tmr232";
repo = "mdformat-wikilink";
tag = "v${version}";
hash = "sha256-tYUF5gNmXjzlf0jQg0tL2ayFGCSFFeYJHkWA6cYLpvI=";
};
build-system = [ poetry-core ];
dependencies = [
markdown-it-py
mdformat
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "mdformat_wikilink" ];
meta = {
description = "Mdformat plugin for ensuring that wiki-style links are preserved during formatting";
homepage = "https://github.com/tmr232/mdformat-wikilink";
changelog = "https://github.com/tmr232/mdformat-wikilink/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mattkang ];
};
}