pythonPackages.requests: disable multiple outputs
The `dev` output is empty anyway. The problem is that it interacts badly with other parts of python and stdenv infrastructure. In particular, before this patch it installs code into `out` output (with only generated `nix-support` in `dev`), but `makePythonPath` then uses `propagatedBuildInputs` to generate `PYTHONPATH` while stdenv selects `dev` outputs for `propagatedBuiltInputs`. This results in `makePythonPath` linking to the empty `dev` output in `PYTHONPATH`. This reverts a piece of commit 28299f669adc41e5278372cad952fb1e1165b44b.
This commit is contained in:
parent
0d0d7dcd06
commit
60ba7d233e
@ -11,8 +11,6 @@ buildPythonPackage rec {
|
|||||||
sha256 = "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a";
|
sha256 = "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pytest ];
|
nativeBuildInputs = [ pytest ];
|
||||||
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
||||||
# sadly, tests require networking
|
# sadly, tests require networking
|
||||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
libXi libX11
|
libXi libX11
|
||||||
] ++ (with python2Packages; [ python setuptools wrapPython ])
|
] ++ (with python2Packages; [ python setuptools wrapPython ])
|
||||||
++ stdenv.lib.optional stdenv.isDarwin Cocoa;
|
++ stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||||
pythonPath = with python2Packages; [ requests.dev ];
|
pythonPath = with python2Packages; [ requests ];
|
||||||
|
|
||||||
# Makefile has /usr/local/bin hard-coded for 'make install'
|
# Makefile has /usr/local/bin hard-coded for 'make install'
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user