mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 14:16:35 +01:00
Diff: https://github.com/executablebooks/mdformat/compare/0.7.22...1.0.0 Changelog: https://github.com/executablebooks/mdformat/blob/1.0.0/docs/users/changelog.md
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
markdown-it-py,
|
|
pytestCheckHook,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "mdformat";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = "mdformat";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-fo4xO4Y89qPAggEjwuf6dnTyu1JzhZVdJyUqGNpti7g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ markdown-it-py ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
versionCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "mdformat" ];
|
|
|
|
passthru = {
|
|
withPlugins = throw "Use pkgs.mdformat.withPlugins, i.e. the top-level attribute.";
|
|
};
|
|
|
|
meta = {
|
|
description = "CommonMark compliant Markdown formatter";
|
|
homepage = "https://mdformat.rtfd.io/";
|
|
changelog = "https://github.com/executablebooks/mdformat/blob/${finalAttrs.src.tag}/docs/users/changelog.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
fab
|
|
aldoborrero
|
|
];
|
|
mainProgram = "mdformat";
|
|
};
|
|
})
|