python311Packages.myst-nb: 0.17.2 -> 1.0.0

Changelog: https://github.com/executablebooks/MyST-NB/raw/v1.0.0/CHANGELOG.md
This commit is contained in:
Mario Rodas 2023-11-10 04:20:00 +00:00
parent f93c0d15f5
commit 460e177537

View file

@ -2,7 +2,6 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchPypi , fetchPypi
, fetchpatch
, flit-core , flit-core
, importlib-metadata , importlib-metadata
, ipython , ipython
@ -15,46 +14,23 @@
, sphinx-togglebutton , sphinx-togglebutton
, typing-extensions , typing-extensions
, ipykernel , ipykernel
, pythonRelaxDepsHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "myst-nb"; pname = "myst-nb";
version = "0.17.2"; version = "1.0.0";
pyproject = true;
format = "pyproject"; disabled = pythonOlder "3.9";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit version;
hash = "sha256-D2E4ZRX6sHxzZGrcqX//L2n0HpDTE6JgIXxbvkGdhYs="; pname = "myst_nb";
hash = "sha256-kHfkKhxrRB6lUHhQb4NVXdpdbIFu9JMIQdcdI54+DF4=";
}; };
patches = [
# Fix compatiblity with myst-parser 1.0. Remove with the next release.
(fetchpatch {
url = "https://github.com/executablebooks/MyST-NB/commit/48c45c6a8c4501005766c2d821b5e9ddfbedd5fa.patch";
hash = "sha256-jGL2MjZArvPtbiaR/rRGCIi0QwYO0iTIK26GLuTrBM8=";
excludes = [
"myst_nb/__init__.py"
"docs/authoring/custom-formats.Rmd"
"docs/authoring/jupyter-notebooks.md"
"docs/index.md"
"pyproject.toml"
"tests/nb_fixtures/reporter_warnings.txt"
];
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "myst-parser~=0.18.0" "myst-parser"
'';
nativeBuildInputs = [ nativeBuildInputs = [
flit-core flit-core
pythonRelaxDepsHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -71,10 +47,6 @@ buildPythonPackage rec {
ipykernel ipykernel
]; ];
pythonRelaxDeps = [
"myst-parser"
];
pythonImportsCheck = [ pythonImportsCheck = [
"myst_nb" "myst_nb"
"myst_nb.sphinx_ext" "myst_nb.sphinx_ext"