depot/third_party/nixpkgs/pkgs/development/python-modules/markdown-it-py/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, linkify-it-py
, mdurl
, psutil
, pytest-benchmark
, pytest-regressions
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "markdown-it-py";
version = "2.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ahg+aAVpAh07PZ1mfrne0EP9K2J4tb8eLp5XXFpWp00=";
};
propagatedBuildInputs = [
attrs
linkify-it-py
mdurl
] ++ lib.optional (pythonOlder "3.8") [
typing-extensions
];
checkInputs = [
psutil
pytest-benchmark
pytest-regressions
pytestCheckHook
];
pythonImportsCheck = [
"markdown_it"
];
meta = with lib; {
description = "Markdown parser in Python";
homepage = "https://markdown-it-py.readthedocs.io/";
changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
};
}