mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
Merge pull request #186804 from smancill/python3-nconvert-use-mistune-2.x
python310Packages.nbconvert: use mistune 2.x
This commit is contained in:
commit
dc87e16589
@ -3,6 +3,7 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, ipywidgets
|
, ipywidgets
|
||||||
, jinja2
|
, jinja2
|
||||||
, jupyterlab-pygments
|
, jupyterlab-pygments
|
||||||
@ -30,10 +31,22 @@ buildPythonPackage rec {
|
|||||||
# various exporter templates
|
# various exporter templates
|
||||||
patches = [
|
patches = [
|
||||||
./templates.patch
|
./templates.patch
|
||||||
|
|
||||||
|
# Use mistune 2.x
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-mistune-2.x.patch";
|
||||||
|
url = "https://github.com/jupyter/nbconvert/commit/e870d9a4a61432a65bee5466c5fa80c9ee28966e.patch";
|
||||||
|
hash = "sha256-kdOmE7BnkRy2lsNQ2OVrEXXZntJUPJ//b139kSsfKmI=";
|
||||||
|
excludes = [ "pyproject.toml" ];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteAllInPlace ./nbconvert/exporters/templateexporter.py
|
substituteAllInPlace ./nbconvert/exporters/templateexporter.py
|
||||||
|
|
||||||
|
# Use mistune 2.x
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "mistune>=0.8.1,<2" "mistune>=2.0.3,<3"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user