summary refs log tree commit diff
path: root/pkgs/applications/misc/mwic
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-02-26 09:43:39 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-02-26 09:43:39 +0100
commitbfe1d74eb83ff2fca1db158d0e08b404bc9a60e6 (patch)
tree63b54a9bafda41e9b7f871c323702582da7b5dcb /pkgs/applications/misc/mwic
parenta78b801c54ecf2a52e14833bc8453a759466d47b (diff)
downloadnixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar.gz
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar.bz2
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar.lz
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar.xz
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.tar.zst
nixpkgs-bfe1d74eb83ff2fca1db158d0e08b404bc9a60e6.zip
mwic: init at 0.7.2 (#23183)
* mwic: init at 0.7.2

* mwic: use makefile instead
Diffstat (limited to 'pkgs/applications/misc/mwic')
-rw-r--r--pkgs/applications/misc/mwic/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/misc/mwic/default.nix b/pkgs/applications/misc/mwic/default.nix
new file mode 100644
index 00000000000..7b9b04c66c8
--- /dev/null
+++ b/pkgs/applications/misc/mwic/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, pythonPackages }:
+
+stdenv.mkDerivation rec {
+  version = "0.7.2";
+  name = "mwic-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/jwilk/mwic/releases/download/${version}/${name}.tar.gz";
+    sha256 = "1linpagf0i0ggicq02fcvz4rpx7xdpy80ys49wx7fnmz7f3jc6jy";
+  };
+
+  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 ];
+  };
+}
+