13 gobject-introspection,
23 stdenv.mkDerivation (finalAttrs: {
28 url = "https://launchpad.net/geis/trunk/${finalAttrs.version}/+download/geis-${finalAttrs.version}.tar.xz";
29 hash = "sha256-imD1aDhSCUA4kE5pDSPMWpCpgPxS2mfw8oiQuqJccOs=";
32 env.NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
34 hardeningDisable = [ "format" ];
36 pythonPath = with python3Packages; [ pygobject3 ];
41 python3Packages.wrapPython
59 python3Packages.python
64 substituteInPlace python/geis/geis_v2.py --replace-fail \
65 "ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
66 substituteInPlace config.aux/py-compile \
67 --replace-fail "import sys, os, py_compile, imp" "import sys, os, py_compile, importlib" \
68 --replace-fail "imp." "importlib." \
69 --replace-fail "hasattr(imp" "hasattr(importlib"
73 buildPythonPath "$out $pythonPath"
74 gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
77 passthru.tests.pkg-config = testers.hasPkgConfigModules {
78 package = finalAttrs.finalPackage;
83 description = "Library for input gesture recognition";
84 homepage = "https://launchpad.net/geis";
85 license = lib.licenses.gpl2;
86 platforms = lib.platforms.linux;
87 pkgConfigModules = [ "libgeis" ];