mdformat-gfm: init at 0.3.5

This commit is contained in:
Aldo Borrero
2023-07-03 13:23:04 +02:00
parent f7607d0a30
commit da7459f412
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,58 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, linkify-it-py
, markdown-it-py
, mdformat
, mdformat-gfm
, mdformat-tables
, mdit-py-plugins
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-gfm";
version = "0.3.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hukkin";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7sIa50jCN+M36Y0C05QaAL+TVwLzKxJ0gzpZI1YQFxg=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
mdformat
markdown-it-py
mdit-py-plugins
];
propagatedBuildInputs = [
mdformat-tables
linkify-it-py
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mdformat_gfm"
];
meta = with lib; {
description = "Mdformat plugin for GitHub Flavored Markdown compatibility";
homepage = "https://github.com/hukkin/mdformat-gfm";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero polarmutex ];
};
}
+1
View File
@@ -6214,6 +6214,7 @@ self: super: with self; {
mdformat-beautysh = callPackage ../development/python-modules/mdformat-beautysh { };
mdformat-footnote = callPackage ../development/python-modules/mdformat-footnote { };
mdformat-frontmatter = callPackage ../development/python-modules/mdformat-frontmatter { };
mdformat-gfm = callPackage ../development/python-modules/mdformat-gfm { };
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };