2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-05-03 20:48:10 +00:00
|
|
|
, buildPythonPackage
|
2024-01-25 14:12:00 +00:00
|
|
|
, commonmark
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, markdown
|
|
|
|
, pydash
|
2024-01-25 14:12:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-05-03 20:48:10 +00:00
|
|
|
, pyyaml
|
2024-01-25 14:12:00 +00:00
|
|
|
, recommonmark
|
|
|
|
, setuptools
|
|
|
|
, sphinx
|
2021-05-03 20:48:10 +00:00
|
|
|
, unify
|
|
|
|
, yapf
|
|
|
|
}:
|
|
|
|
|
|
|
|
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-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
commonmark
|
|
|
|
markdown
|
|
|
|
pydash
|
|
|
|
pyyaml
|
|
|
|
recommonmark
|
|
|
|
unify
|
|
|
|
yapf
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
sphinx
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sphinx_markdown_parser"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|