`pandas` is in the `nativeCheckInputs` closure, but is marked as broken on i686, due to maintainers no longer testing on that platform. This causes some derivations (eg. fontconfig/noto-fonts-emoji) to fail on i686.
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ lib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, commonmark
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, linkify-it-py
|
|
, markdown
|
|
, mdurl
|
|
, mistletoe
|
|
, mistune
|
|
, myst-parser
|
|
, panflute
|
|
, pyyaml
|
|
, sphinx
|
|
, sphinx-book-theme
|
|
, sphinx-copybutton
|
|
, sphinx-design
|
|
, stdenv
|
|
, pytest-regressions
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markdown-it-py";
|
|
version = "2.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qdRU1BxczFDGoIEtl0ZMkKNn4p5tec8YuPt5ZwX5fYM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
mdurl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-regressions
|
|
pytestCheckHook
|
|
] ++ passthru.optional-dependencies.linkify;
|
|
|
|
# disable and remove benchmark tests
|
|
preCheck = ''
|
|
rm -r benchmarking
|
|
'';
|
|
doCheck = !stdenv.isi686;
|
|
|
|
pythonImportsCheck = [
|
|
"markdown_it"
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
compare = [ commonmark markdown mistletoe mistune panflute ];
|
|
linkify = [ linkify-it-py ];
|
|
rtd = [ attrs myst-parser pyyaml sphinx sphinx-copybutton sphinx-design sphinx-book-theme ];
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|