depot/third_party/nixpkgs/pkgs/development/python-modules/mdit-py-plugins/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

48 lines
913 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit-core
, markdown-it-py
, pytest-regressions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mdit-py-plugins";
version = "0.3.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-BvxqMSl8YXD84O6qjDI0VZgZpqL0UL0vYDMKxCc9qtI=";
};
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";
license = licenses.mit;
maintainers = with maintainers; [ AluisioASG ];
};
}