python3Packages.nbconvert: use upstream's style.css

https://github.com/jupyter/nbconvert/issues/1896 has been fixed
(cherry picked from commit 814e470668)
This commit is contained in:
Robert Schütz
2026-04-22 19:42:10 -07:00
committed by github-actions[bot]
parent c68798ddf3
commit dffadd784f

View File

@@ -1,6 +1,5 @@
{
lib,
fetchurl,
buildPythonPackage,
pythonOlder,
fetchPypi,
@@ -25,13 +24,6 @@
pytestCheckHook,
}:
let
# see https://github.com/jupyter/nbconvert/issues/1896
style-css = fetchurl {
url = "https://cdn.jupyter.org/notebook/5.4.0/style/style.min.css";
hash = "sha256-WGWmCfRDewRkvBIc1We2GQdOVAoFFaO4LyIvdk61HgE=";
};
in
buildPythonPackage rec {
pname = "nbconvert";
version = "7.17.1";
@@ -50,9 +42,6 @@ buildPythonPackage rec {
postPatch = ''
substituteAllInPlace ./nbconvert/exporters/templateexporter.py
mkdir -p share/templates/classic/static
cp ${style-css} share/templates/classic/static/style.css
'';
build-system = [ hatchling ];