nixpkgs/pkgs/development/python-modules/mdit-py-plugins/default.nix
2023-01-05 01:10:14 +01:00

49 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit-core
, markdown-it-py
, pytest-regressions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mdit-py-plugins";
version = "0.3.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9eaVM5KxrMY5q0c2KWmctCHyPGmEGGNa9B3LoRL/mcI=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
markdown-it-py
];
checkInputs = [
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 ];
};
}