about summary refs log tree commit diff
path: root/pkgs/development/python-modules/coconut
diff options
context:
space:
mode:
authorFabián Heredia Montiel <fabianhjr@protonmail.com>2021-10-15 12:09:48 -0500
committerFabián Heredia Montiel <fabianhjr@protonmail.com>2021-10-17 19:12:27 -0500
commitc61d6d45c9eb98c70e99f045f53f2705fe8ecd63 (patch)
tree71eaf8014dc675facd204304ed9d2d2afe51b69d /pkgs/development/python-modules/coconut
parentf5d61650827c5fcfe6426b7d7b4631216435ca8e (diff)
coconut: 1.4.3 → 1.5.0
Diffstat (limited to 'pkgs/development/python-modules/coconut')
-rw-r--r--pkgs/development/python-modules/coconut/default.nix31
1 files changed, 11 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/coconut/default.nix b/pkgs/development/python-modules/coconut/default.nix
index e964f2abaaa07..b140f8110a6d5 100644
--- a/pkgs/development/python-modules/coconut/default.nix
+++ b/pkgs/development/python-modules/coconut/default.nix
@@ -5,6 +5,7 @@
 , cpyparsing
 , ipykernel
 , mypy
+, pexpect
 , pygments
 , pytestCheckHook
 , prompt-toolkit
@@ -14,34 +15,24 @@
 
 buildPythonApplication rec {
   pname = "coconut";
-  version = "1.4.3";
+  version = "1.5.0";
 
   src = fetchFromGitHub {
     owner = "evhub";
     repo = "coconut";
     rev = "v${version}";
-    sha256 = "1pz13vza3yy95dbylnq89fzc3mwgcqr7ds096wy25k6vxd9dp9c3";
+    sha256 = "1gc0fwqwzn1j6mcg1f6fw832w66pbaaq9mmi0r4kw3xn5f877icz";
   };
 
-  propagatedBuildInputs = [ cpyparsing pygments prompt-toolkit ipykernel mypy watchdog ];
-
-  patches = [
-    (fetchpatch {
-      name = "fix-setuptools-version-check.patch";
-      url = "https://github.com/LibreCybernetics/coconut/commit/2916a087da1e063cc4438b68d4077347fd1ea4a2.patch";
-      sha256 = "136jbd2rvnifw30y73vv667002nf7sbkm5qyihshj4db7ngysr6q";
-    })
-    (fetchpatch {
-      name = "support-python-3.9.patch";
-      url = "https://github.com/evhub/coconut/commit/5c724b4dd92fb62c614d8192e3cac3dd1d475790.patch";
-      sha256 = "04xmzyfmyv6gr2l2z6pdxlllwzcmwxvahxzqyxglr36hfl33ad71";
-    })
-  ];
+  propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
 
-  checkInputs = [
-    pytestCheckHook
-    tkinter
-  ];
+  postPatch = ''
+    substituteInPlace coconut/kernel_installer.py \
+      --replace "fixpath(os.path.join(sys.exec_prefix, icoconut_custom_kernel_install_loc))" \
+                "fixpath(icoconut_custom_kernel_install_loc)"
+  '';
+
+  checkInputs = [ pexpect pytestCheckHook tkinter ];
 
   # Currently most tests do not work on Hydra due to external fetches.
   pytestFlagsArray = [