nixpkgs/doc/languages-frameworks
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
..
beam.xml Update BEAM docs 2017-06-22 11:32:46 +02:00
bower.xml nixpkgs manual: Add documentation for bower2nix 2016-03-28 08:25:45 +01:00
coq.xml nixpkgs manual: split languages into separate files 2015-12-19 16:08:00 +01:00
go.xml doc / go building: improve 2017-06-27 16:34:03 +02:00
haskell.md haskell: remove all code related to the "haste" compiler 2017-07-26 10:20:30 +02:00
index.xml doc: Add rust documentation (#23510) 2017-03-20 20:41:37 +01:00
java.xml nixpkgs manual: split languages into separate files 2015-12-19 16:08:00 +01:00
lua.xml nixpkgs manual: split languages into separate files 2015-12-19 16:08:00 +01:00
perl.xml perl docs: update generated expression 2016-09-03 18:14:06 +02:00
python.md Python: add buildPythonPackage.overridePythonPackage method. 2017-08-09 11:10:54 +02:00
qt.xml nixpkgs: remark about running Qt applications 2017-06-18 08:44:47 -05:00
ruby.xml ruby docs: simplify example 2017-08-08 12:49:52 +02:00
rust.md rustup: init at 1.2.0 2017-04-17 15:53:36 +02:00
texlive.xml texlive manual: adds import of nixpkgs in nix-repl 2016-10-20 08:50:54 +02:00
vim.md doc/languages-frameworks/vim: add custom vimrc & packages 2017-06-22 13:25:03 +01:00