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

On Fri, Apr 22, 2016 at 4:59 PM, Marc Weber <marco-owe...@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@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to