mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
commonmark,
|
|
fetchFromGitHub,
|
|
markdown,
|
|
pydash,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
recommonmark,
|
|
setuptools,
|
|
sphinx,
|
|
unify,
|
|
yapf,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "sphinx-markdown-parser";
|
|
version = "0.2.4";
|
|
pyproject = true;
|
|
|
|
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";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
commonmark
|
|
markdown
|
|
pydash
|
|
pyyaml
|
|
recommonmark
|
|
unify
|
|
yapf
|
|
];
|
|
|
|
buildInputs = [ sphinx ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "sphinx_markdown_parser" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_heading"
|
|
"test_headings"
|
|
"test_integration"
|
|
];
|
|
|
|
meta = {
|
|
description = "Write markdown inside of docutils & sphinx projects";
|
|
homepage = "https://github.com/clayrisser/sphinx-markdown-parser";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ FlorianFranzen ];
|
|
};
|
|
}
|