nixpkgs/doc
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
..
languages-frameworks Python: add buildPythonPackage.overridePythonPackage method. 2017-08-09 11:10:54 +02:00
old
coding-conventions.xml
configuration.xml Merge pull request #25955 from matthewbauer/nixpkgs-manual-declarative-package-management 2017-07-16 16:50:14 -04:00
contributing.xml
cross-compilation.xml doc: Update cross compilation chapter for stdenv.{build,host,target}Platform 2017-07-07 13:24:33 -04:00
default.nix
functions.xml dockerTools: document image spec v1.2 compatibility 2017-08-03 11:52:03 +02:00
introduction.md
manual.xml
meta.xml
multiple-output.xml
overlays.xml
package-notes.xml fzf: add script for finding 'share' folder 2017-07-28 12:48:11 +03:00
quick-start.xml Point to the new mailing list by replacing the old link 2017-07-18 13:44:10 +02:00
release-notes.xml
reviewing-contributions.xml
stdenv.xml
style.css
submitting-changes.xml