e3f022fa21
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 <module> import lib.cli # pylint: disable=wrong-import-position File "/nix/store/zn9jli2v7znh6w6rpkjp6w0iz3na79yz-mwic-0.7.8/share/mwic/lib/cli.py", line 32, in <module> import enchant.tokenize ModuleNotFoundError: No module named 'enchant' Signed-off-by: Anders Kaseorg <andersk@mit.edu>
32 lines
777 B
Nix
32 lines
777 B
Nix
{ stdenv, fetchurl, pythonPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.7.8";
|
|
pname = "mwic";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jwilk/mwic/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "0nnhziz9v523hpciylnxfajmxabh2ig5iawzwrfpf7aww70v330x";
|
|
};
|
|
|
|
makeFlags=["PREFIX=\${out}"];
|
|
|
|
nativeBuildInputs = [
|
|
pythonPackages.wrapPython
|
|
];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ pyenchant regex ];
|
|
|
|
postFixup = ''
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://jwilk.net/software/mwic";
|
|
description = "spell-checker that groups possible misspellings and shows them in their contexts";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|
|
|