mdformat-frontmatter: init at 2.0.1

This commit is contained in:
Aldo Borrero
2023-07-03 13:23:04 +02:00
parent 9fbd8b575e
commit f7607d0a30
2 changed files with 46 additions and 0 deletions
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, linkify-it-py
, markdown-it-py
, mdformat
, mdit-py-plugins
, ruamel-yaml
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-frontmatter";
version = "2.0.1";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "butler54";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-PhT5whtvvcYSs5gHQEsIvV1evhx7jR+3DWFMHrF0uMw=";
};
buildInputs = [
mdformat
mdit-py-plugins
];
propagatedBuildInputs = [
ruamel-yaml
];
pythonImportsCheck = [
"mdformat_frontmatter"
];
meta = with lib; {
description = "mdformat plugin to ensure frontmatter is respected";
homepage = "https://github.com/butler54/mdformat-frontmatter";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero polarmutex ];
};
}
+1
View File
@@ -6213,6 +6213,7 @@ self: super: with self; {
mdformat = callPackage ../development/python-modules/mdformat { };
mdformat-beautysh = callPackage ../development/python-modules/mdformat-beautysh { };
mdformat-footnote = callPackage ../development/python-modules/mdformat-footnote { };
mdformat-frontmatter = callPackage ../development/python-modules/mdformat-frontmatter { };
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };