c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
49 lines
1,013 B
Nix
49 lines
1,013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, flit-core
|
|
, markdown-it-py
|
|
, pytest-regressions
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdit-py-plugins";
|
|
version = "0.3.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-U6Qh/1GklW9ZXBXmjPLuxga0JS/Cyga1iorcMEA+WP8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
markdown-it-py
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-regressions
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mdit_py_plugins"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of core plugins for markdown-it-py";
|
|
homepage = "https://github.com/executablebooks/mdit-py-plugins";
|
|
changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
};
|
|
}
|