2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-12-09 12:39:15 +00:00
|
|
|
, attrs
|
2021-05-20 23:08:51 +00:00
|
|
|
, linkify-it-py
|
2020-12-09 12:39:15 +00:00
|
|
|
, psutil
|
|
|
|
, pytest-benchmark
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytest-regressions
|
|
|
|
, typing-extensions
|
2020-12-09 12:39:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "markdown-it-py";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.1.0";
|
2021-05-20 23:08:51 +00:00
|
|
|
format = "pyproject";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "executablebooks";
|
2021-05-20 23:08:51 +00:00
|
|
|
repo = pname;
|
2020-12-09 12:39:15 +00:00
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ attrs linkify-it-py ]
|
|
|
|
++ lib.optional (pythonOlder "3.8") typing-extensions;
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
psutil
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-benchmark
|
|
|
|
pytest-regressions
|
2020-12-09 12:39:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
pythonImportsCheck = [ "markdown_it" ];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Markdown parser done right";
|
|
|
|
homepage = "https://markdown-it-py.readthedocs.io/en/latest";
|
|
|
|
changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
|
|
|
};
|
|
|
|
}
|