about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-29 20:34:28 -0700
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-09-27 15:32:44 +0200
commitf23415e0397f72c116d0d685603ce6aee7a123bc (patch)
treec4e32528cb75cf29a2d2cbe357dfbcc682400544 /pkgs
parentd77e13848dd63155aab17d87a3d2c53deb935614 (diff)
python311Packages.cepa: pull in patch to fix python 3.11 build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/cepa/default.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cepa/default.nix b/pkgs/development/python-modules/cepa/default.nix
index 708decb2964fd..67c45a26665ba 100644
--- a/pkgs/development/python-modules/cepa/default.nix
+++ b/pkgs/development/python-modules/cepa/default.nix
@@ -1,4 +1,10 @@
-{ lib, buildPythonPackage, fetchPypi, python, mock }:
+{ lib
+, buildPythonPackage
+, fetchpatch
+, fetchPypi
+, python
+, mock
+}:
 
 buildPythonPackage rec {
   pname = "cepa";
@@ -9,6 +15,14 @@ buildPythonPackage rec {
     hash = "sha256-P7xwGsP8ic1/abxYptDXNbAU+kC2Hiwu/Tge0g21ipY=";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "python-3.11-compatibility.patch";
+      url = "https://github.com/onionshare/cepa/commit/0bf9aee7151e65594c532826bb04636e1d80fb6f.patch";
+      hash = "sha256-roSt9N5OvnOOxKZUee86zGXt0AsZCcbBdV2cLz1MB2k=";
+    })
+  ];
+
   postPatch = ''
     rm test/unit/installation.py
     sed -i "/test.unit.installation/d" test/settings.cfg