2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
commonmark,
|
|
|
|
fetchFromGitHub,
|
|
|
|
markdown,
|
|
|
|
pydash,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
recommonmark,
|
|
|
|
setuptools,
|
|
|
|
sphinx,
|
|
|
|
unify,
|
|
|
|
yapf,
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-markdown-parser";
|
|
|
|
version = "0.2.4";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clayrisser";
|
|
|
|
repo = "sphinx-markdown-parser";
|
|
|
|
# Upstream maintainer currently does not tag releases
|
|
|
|
# https://github.com/clayrisser/sphinx-markdown-parser/issues/35
|
|
|
|
rev = "2fd54373770882d1fb544dc6524c581c82eedc9e";
|
|
|
|
sha256 = "0i0hhapmdmh83yx61lxi2h4bsmhnzddamz95844g2ghm132kw5mv";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
commonmark
|
|
|
|
markdown
|
|
|
|
pydash
|
|
|
|
pyyaml
|
|
|
|
recommonmark
|
|
|
|
unify
|
|
|
|
yapf
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ sphinx ];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sphinx_markdown_parser" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_heading"
|
|
|
|
"test_headings"
|
|
|
|
"test_integration"
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Write markdown inside of docutils & sphinx projects";
|
|
|
|
homepage = "https://github.com/clayrisser/sphinx-markdown-parser";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ FlorianFranzen ];
|
2024-01-25 14:12:00 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
}
|