From e3f022fa216c59291c4d0cd7f1b3e8d0fec6189f Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 10 Aug 2020 16:07:19 -0700 Subject: [PATCH] mwic: Fix Python wrapping Fixes this error when mwic is installed with nix-env: $ mwic Traceback (most recent call last): File "/home/anders/.nix-profile/bin/mwic", line 30, in import lib.cli # pylint: disable=wrong-import-position File "/nix/store/zn9jli2v7znh6w6rpkjp6w0iz3na79yz-mwic-0.7.8/share/mwic/lib/cli.py", line 32, in import enchant.tokenize ModuleNotFoundError: No module named 'enchant' Signed-off-by: Anders Kaseorg --- pkgs/applications/misc/mwic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/mwic/default.nix b/pkgs/applications/misc/mwic/default.nix index 3be02e7c41c..dffc27bd40b 100644 --- a/pkgs/applications/misc/mwic/default.nix +++ b/pkgs/applications/misc/mwic/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { propagatedBuildInputs = with pythonPackages; [ pyenchant regex ]; postFixup = '' - buildPythonPath "$out" + wrapPythonPrograms ''; meta = with stdenv.lib; {