about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorBenedikt Tissot <benedikt.tissot@googlemail.com>2024-06-05 10:25:21 +0200
committerBenedikt Tissot <benedikt.tissot@googlemail.com>2024-06-15 16:15:07 +0200
commit22362b362743287cf6f31d7c42ee7f10344ddd05 (patch)
treee43164a782f6077509bd306d7f8ffc84c28d99ac /pkgs/development
parenta0840027a1a6bec2cb14094aa58b262ddba2a3a8 (diff)
libeduvpn-common: 1.2.1 -> 2.0.1
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/eduvpn-common/use-nix-lib.patch23
1 files changed, 4 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/eduvpn-common/use-nix-lib.patch b/pkgs/development/python-modules/eduvpn-common/use-nix-lib.patch
index a8f4975280c2f..ea40fe496e963 100644
--- a/pkgs/development/python-modules/eduvpn-common/use-nix-lib.patch
+++ b/pkgs/development/python-modules/eduvpn-common/use-nix-lib.patch
@@ -1,25 +1,10 @@
-diff --git a/eduvpn_common/loader.py b/eduvpn_common/loader.py
-index 673d180..195f8c1 100644
 --- a/eduvpn_common/loader.py
 +++ b/eduvpn_common/loader.py
-@@ -21,6 +21,7 @@ def load_lib() -> CDLL:
+@@ -22,6 +22,7 @@ def load_lib() -> CDLL:
      :return: The Go shared library loaded with cdll.LoadLibrary from ctypes
      :rtype: CDLL
      """
 +    return cdll.LoadLibrary("@libeduvpn-common@")
-     lib_prefixes = defaultdict(
-         lambda: "lib",
-         {
-diff --git a/setup.py b/setup.py
-index 0d23379..a9d7926 100755
---- a/setup.py
-+++ b/setup.py
-@@ -92,4 +92,6 @@ class bdist_wheel(_bdist_wheel):
-         self.exports_lib_path = "../../exports/lib"  # default
-
-     def run(self):
-+        _bdist_wheel.run(self)
-+        return
-         self.plat_name_supplied = True  # Force use platform
-
-         libpath = getlibpath(self.plat_name)
+     libfile = f"libeduvpn_common-{__version__}.so"
+ 
+     lib = None