mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 02:20:36 +00:00
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:
committed by
github-actions[bot]
parent
c68798ddf3
commit
dffadd784f
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user