[Nix-dev] pyenchant: new package
Luca Bruno
lethalman88 at gmail.com
Sat Sep 13 11:13:45 CEST 2014
Out of curiosity, is anybody reviewing your patches in the mailing list? We
usually use github.
On Sat, Sep 13, 2014 at 10:57 AM, Nick Sauce <nick.sauce at monumentmail.com>
wrote:
> pyenchant: new package
> ---
>
> diff --git \
> a/pkgs/top-level/python-packages.nix \
> b/pkgs/top-level/python-packages.nix
> index 34ecbff..aec3a3b 100644
> --- a/pkgs/top-level/python-packages.nix
> +++ b/pkgs/top-level/python-packages.nix
> @@ -839,6 +839,36 @@ rec {
> };
> };
>
> + pyenchant = buildPythonPackage rec {
> + name = "pyenchant-1.6.6";
> +
> + src = fetchurl {
> + url =
> + "
> https://pypi.python.org/packages/source/p/pyenchant/${name}.tar.gz";
> + sha256 =
> +
> "25c9d2667d512f8fc4410465fdd2e868377ca07eb3d56e2b6e534a86281d64d3";
> + };
> +
> + propagatedBuildInputs = [ pkgs.enchant ];
> +
> + # XXX: ctypes' cdll.LoadLibrary doesn't appear to function
> appropriately
> + patchPhase = let
> + path_hack_script =
> + "s|LoadLibrary(e_path)|LoadLibrary('${pkgs.enchant}/lib/' +
> e_path)|";
> + in ''
> + sed -i "${path_hack_script}" enchant/_enchant.py
> + '';
> +
> + # dictionaries needed for tests
> + doCheck = false;
> +
> + meta = {
> + description =
> + "Python spellchecking library, based on the Enchant library";
> + homepage = https://pythonhosted.org/pyenchant/;
> + license = stdenv.lib.licenses.lgpl21;
> + };
> + };
>
> bitbucket_api = buildPythonPackage rec {
> name = "bitbucket-api-0.4.4";
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
--
www.debian.org - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140913/8a4aaa07/attachment-0001.html
More information about the nix-dev
mailing list