nixpkgs/pkgs
Frederik Rietdijk 345b35c48a Python: add buildPythonPackage.overridePythonPackage method.
This allows one to always override the call to `buildPythonPackage`.

In the following example we create an environment where we have the `blaze` package using an older version of `pandas`. We override first the Python interpreter and pass `packageOverrides` which contains the overrides for packages in
the package set.

```
with import <nixpkgs> {};

(let
  python = let
    packageOverrides = self: super: {
      pandas = super.pandas.overridePythonPackage(old: rec {
        version = "0.19.1";
        name = "pandas-${version}";
        src =  super.fetchPypi {
          pname = "pandas";
          inherit version;
          sha256 = "08blshqj9zj1wyjhhw3kl2vas75vhhicvv72flvf1z3jvapgw295";
        };
      });
    };
  in pkgs.python3.override {inherit packageOverrides;};

in python.withPackages(ps: [ps.blaze])).env
```
2017-08-09 11:10:54 +02:00
..
applications Merge pull request #27832 from lsix/update_wireshark 2017-08-09 09:59:44 +02:00
build-support Merge commit 'ad83979e5986fa3bb0d254c2be9482c12a8743b9' from staging 2017-08-06 11:21:53 +02:00
common-updater common-updater-script: fix error handling 2017-05-19 17:14:43 +03:00
data elementary-icon-theme: 4.1.0 -> 4.2.0 2017-08-06 13:42:57 -03:00
desktops Merge pull request #28004 from moesasji/master 2017-08-07 18:40:48 +02:00
development Merge pull request #27865 from lsix/update_django 2017-08-09 09:55:42 +02:00
games rftg: init at 0.9.4 2017-08-08 08:56:29 -07:00
misc adapta-gtk-theme: 3.90.0.125 -> 3.91.1.47 2017-08-07 06:37:11 -03:00
os-specific powerstat: 0.02.11 -> 0.02.12 2017-08-08 23:46:01 +10:00
servers Merge pull request #28023 from volth/zookeeper-3.4.10 2017-08-08 07:20:22 -04:00
shells oil: init at 0.0.0 2017-08-06 18:17:00 +01:00
stdenv Merge PR #27536 2017-08-03 17:25:30 -04:00
test macos-sierra-shared: Make live code and add to nascent Darwin channel 2017-07-31 21:28:18 -04:00
tools Merge pull request #28020 from michalrus/geekbench 2017-08-08 02:14:03 +02:00
top-level Python: add buildPythonPackage.overridePythonPackage method. 2017-08-09 11:10:54 +02:00