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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
775 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pythonPackages }:
stdenv.mkDerivation rec {
2023-03-04 10:24:39 +01:00
version = "0.7.10";
pname = "mwic";
src = fetchurl {
url = "https://github.com/jwilk/mwic/releases/download/${version}/${pname}-${version}.tar.gz";
2023-03-04 10:24:39 +01:00
sha256 = "sha256-dmIHPehkxpSb78ymVpcPCu4L41coskrHQOg067dprOo=";
};
makeFlags=["PREFIX=\${out}"];
nativeBuildInputs = [
pythonPackages.wrapPython
];
propagatedBuildInputs = with pythonPackages; [ pyenchant regex ];
postFixup = ''
wrapPythonPrograms
'';
meta = with 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 ];
};
}