Files
nixpkgs/pkgs/development/python-modules/mdformat-frontmatter/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

47 lines
988 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mdformat,
mdit-py-plugins,
ruamel-yaml,
pythonOlder,
}:
buildPythonPackage rec {
pname = "mdformat-frontmatter";
version = "2.0.8";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "butler54";
repo = "mdformat-frontmatter";
tag = "v${version}";
hash = "sha256-2heQw8LL/ILY36oItBeQq33qjVBGT51qGG4CcCEDutA=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
mdformat
mdit-py-plugins
ruamel-yaml
];
pythonImportsCheck = [ "mdformat_frontmatter" ];
meta = {
description = "Mdformat plugin to ensure frontmatter is respected";
homepage = "https://github.com/butler54/mdformat-frontmatter";
changelog = "https://github.com/butler54/mdformat-frontmatter/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
aldoborrero
polarmutex
];
};
}