python3Packages.markdown-it-py: 3.0.0 -> 4.0.0 (#466893)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
{
|
||||
lib,
|
||||
attrs,
|
||||
buildPythonPackage,
|
||||
commonmark,
|
||||
fetchFromGitHub,
|
||||
flit-core,
|
||||
ipykernel,
|
||||
jupyter-sphinx,
|
||||
linkify-it-py,
|
||||
markdown,
|
||||
mdit-py-plugins,
|
||||
@@ -21,31 +22,28 @@
|
||||
stdenv,
|
||||
pytest-regressions,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "markdown-it-py";
|
||||
version = "3.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "4.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "executablebooks";
|
||||
repo = "markdown-it-py";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-cmjLElJA61EysTUFMVY++Kw0pI4wOIXOyCY3To9fpQc=";
|
||||
hash = "sha256-92J9cMit2zwyjoE8G1YpwDxj+wiApQW2eUHxUOUt3as=";
|
||||
};
|
||||
|
||||
# fix downstrem usage of markdown-it-py[linkify]
|
||||
pythonRelaxDeps = [ "linkify-it-py" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ mdurl ];
|
||||
dependencies = [ mdurl ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-regressions
|
||||
@@ -68,24 +66,27 @@ buildPythonPackage rec {
|
||||
mistletoe
|
||||
mistune
|
||||
panflute
|
||||
# FIXME package markdown-it-pyrs
|
||||
];
|
||||
linkify = [ linkify-it-py ];
|
||||
plugins = [ mdit-py-plugins ];
|
||||
rtd = [
|
||||
attrs
|
||||
mdit-py-plugins
|
||||
myst-parser
|
||||
pyyaml
|
||||
sphinx
|
||||
sphinx-copybutton
|
||||
sphinx-design
|
||||
sphinx-book-theme
|
||||
jupyter-sphinx
|
||||
ipykernel
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
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";
|
||||
changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "markdown-it";
|
||||
};
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
flit-core,
|
||||
markdown-it-py,
|
||||
pytest-regressions,
|
||||
@@ -11,21 +10,19 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mdit-py-plugins";
|
||||
version = "0.4.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "0.5.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "executablebooks";
|
||||
repo = "mdit-py-plugins";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-aY2DMLh1OkWVcN6A29FLba1ETerf/EOqSjHVpsdE21M=";
|
||||
hash = "sha256-MQU6u49KsWGaKeWU5v066kZidcfCoubqClxAapAZb9A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
build-system = [ flit-core ];
|
||||
|
||||
propagatedBuildInputs = [ markdown-it-py ];
|
||||
dependencies = [ markdown-it-py ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
@@ -37,7 +34,7 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Collection of core plugins for markdown-it-py";
|
||||
homepage = "https://github.com/executablebooks/mdit-py-plugins";
|
||||
changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/v${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/${src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user