1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
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
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
lua.xml
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