59 lines
1 KiB
Nix
59 lines
1 KiB
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|