nixpkgs/pkgs/applications/misc/mwic/default.nix

32 lines
777 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pythonPackages }:
stdenv.mkDerivation rec {
2018-02-21 13:11:06 +00:00
version = "0.7.4";
name = "mwic-${version}";
src = fetchurl {
url = "https://github.com/jwilk/mwic/releases/download/${version}/${name}.tar.gz";
2018-02-21 13:11:06 +00:00
sha256 = "0c0xk7wx4vaamlry6srdixw1q6afmqznvxdzcg1skr0qjypw5i5q";
};
makeFlags=["PREFIX=\${out}"];
nativeBuildInputs = [
pythonPackages.wrapPython
];
propagatedBuildInputs = with pythonPackages; [ pyenchant regex ];
postFixup = ''
buildPythonPath "$out"
'';
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 ];
};
}