about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-10 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2023-11-10 04:20:00 +0000
commit460e1775379f40f6180c735a48fcbce0b563292a (patch)
treec67a27c3bf03a89e27afb26fd20d52e87a298115
parentf93c0d15f594640f53de365dcb0fb8793688a6a3 (diff)
python311Packages.myst-nb: 0.17.2 -> 1.0.0
Changelog: https://github.com/executablebooks/MyST-NB/raw/v1.0.0/CHANGELOG.md
-rw-r--r--pkgs/development/python-modules/myst-nb/default.nix40
1 files changed, 6 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/myst-nb/default.nix b/pkgs/development/python-modules/myst-nb/default.nix
index 33c06fc24619b..cf3d309420eb7 100644
--- a/pkgs/development/python-modules/myst-nb/default.nix
+++ b/pkgs/development/python-modules/myst-nb/default.nix
@@ -2,7 +2,6 @@
 , buildPythonPackage
 , pythonOlder
 , fetchPypi
-, fetchpatch
 , flit-core
 , importlib-metadata
 , ipython
@@ -15,46 +14,23 @@
 , sphinx-togglebutton
 , typing-extensions
 , ipykernel
-, pythonRelaxDepsHook
 }:
 
 buildPythonPackage rec {
   pname = "myst-nb";
-  version = "0.17.2";
+  version = "1.0.0";
+  pyproject = true;
 
-  format = "pyproject";
-
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.9";
 
   src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-D2E4ZRX6sHxzZGrcqX//L2n0HpDTE6JgIXxbvkGdhYs=";
+    inherit version;
+    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 = [
     flit-core
-    pythonRelaxDepsHook
   ];
 
   propagatedBuildInputs = [
@@ -71,10 +47,6 @@ buildPythonPackage rec {
     ipykernel
   ];
 
-  pythonRelaxDeps = [
-    "myst-parser"
-  ];
-
   pythonImportsCheck = [
     "myst_nb"
     "myst_nb.sphinx_ext"