summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-pyreadstat-link-libiconv.patch
diff options
context:
space:
mode:
authorTroy Figiel <troy@troyfigiel.com>2024-01-07 17:40:35 +0100
committerMathieu Othacehe <othacehe@gnu.org>2024-01-09 10:19:43 +0100
commit185ebc01f6122e0312202e53a5cf2dfaa85d6672 (patch)
treec46ca0a90f7bf38c2ea5b25aa964cb63164a75d5 /gnu/packages/patches/python-pyreadstat-link-libiconv.patch
parent76470d47c56c2abc67e9a5dc20acd67f0426fd02 (diff)
gnu: Add python-pyreadstat.
* gnu/packages/patches/python-pyreadstat-link-libiconv.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/statistics.scm (python-pyreadstat): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Change-Id: I361df91487412e4bfd26fb728a6999752e6343e5
Diffstat (limited to 'gnu/packages/patches/python-pyreadstat-link-libiconv.patch')
-rw-r--r--gnu/packages/patches/python-pyreadstat-link-libiconv.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-pyreadstat-link-libiconv.patch b/gnu/packages/patches/python-pyreadstat-link-libiconv.patch
new file mode 100644
index 0000000000..7efd71faeb
--- /dev/null
+++ b/gnu/packages/patches/python-pyreadstat-link-libiconv.patch
@@ -0,0 +1,15 @@
+To ensure libiconv can be found by Guix, we need to link the library.
+
+--- a/setup.py
++++ b/setup.py
+@@ -81,8 +81,7 @@ else:
+ libraries.extend(["m", "z"])
+ _platform = sys.platform
+ # Mac: iconv needs to be linked statically
+- if _platform.lower().startswith("darwin"):
+- libraries.append("iconv")
++ libraries.append("iconv")
+
+ # Extensions
+ sources.sort()
+