[Nix-dev] Python & installation

Domen Kožar domen at dev.si
Fri Apr 22 18:07:17 CEST 2016


http://nixos.org/nixpkgs/manual/ should answer all your questions regarding
Python :)

On Fri, Apr 22, 2016 at 4:59 PM, Marc Weber <marco-oweber at gmx.de> wrote:

> The question I have is which is the recommended way to install "scrapy
> along with dependencies", the following fixes it by making
> propagatedUserEnvPkgs equal to propagatedBuildInputs.. is there another
> way?
>
>   diff --git a/pkgs/development/python-modules/generic/default.nix
> b/pkgs/development/python-modules/generic/default.nix
>   index 1fdbd4f..458d187 100644
>   --- a/pkgs/development/python-modules/generic/default.nix
>   +++ b/pkgs/development/python-modules/generic/default.nix
>   @@ -70,6 +70,8 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs
> ["disabled" "doCheck"] //
>      # propagate python/setuptools to active setup-hook in nix-shell
>      propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools
> ];
>
>   +  propagatedUserEnvPkgs = propagatedBuildInputs ++ [ python setuptools
> ];
>   +
>      pythonPath = pythonPath;
>
>      configurePhase = attrs.configurePhase or ''
>
> Then installing scrapy and setting PYTHONPATH or PYTHONUSERBASE seems to
> enough.
>
> Full patch adding the missing packages:
> http://mawercer.de/tmp/scrapy-diff.patch
>
> Is there an automated maintained way to do such python packaging work I
> missed? Sorry for asking such stupid question - I didn't look at python
> for a long time.
>
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160422/27f506e1/attachment.html 


More information about the nix-dev mailing list