2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, flit-core
|
2023-07-15 17:15:38 +00:00
|
|
|
, linkify-it-py
|
|
|
|
, markdown-it-py
|
|
|
|
, mdformat
|
|
|
|
, mdit-py-plugins
|
|
|
|
, ruamel-yaml
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mdformat-frontmatter";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.0.8";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "butler54";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "mdformat-frontmatter";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-2heQw8LL/ILY36oItBeQq33qjVBGT51qGG4CcCEDutA=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
mdformat
|
|
|
|
mdit-py-plugins
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mdformat_frontmatter"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
description = "Mdformat plugin to ensure frontmatter is respected";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/butler54/mdformat-frontmatter";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/butler54/mdformat-frontmatter/blob/v{version}/CHANGELOG.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aldoborrero polarmutex ];
|
|
|
|
};
|
|
|
|
}
|