diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-08-12 08:58:06 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-08-12 08:58:41 +0200 |
commit | abdb58e407d0351894ea1ee32c3484a89f1e53cd (patch) | |
tree | 2df5e5fb552d79ea9378b6dc7e13ee6655c0b4f9 /doc | |
parent | 026b60e49e933d2093dab105734b38817ba8e93e (diff) |
Python: overridePythonPackage -> overridePythonAttrs
to better fit the existing naming scheme. https://github.com/NixOS/nixpkgs/pull/26155#issuecomment-321279629
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/python.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md index c8add96a14828..c100c9d0c20ac 100644 --- a/doc/languages-frameworks/python.md +++ b/doc/languages-frameworks/python.md @@ -547,7 +547,7 @@ All parameters from `mkDerivation` function are still supported. ##### Overriding Python packages -The `buildPythonPackage` function has a `overridePythonPackage` method that +The `buildPythonPackage` function has a `overridePythonAttrs` method that can be used to override the package. 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 @@ -559,7 +559,7 @@ with import <nixpkgs> {}; (let python = let packageOverrides = self: super: { - pandas = super.pandas.overridePythonPackage(old: rec { + pandas = super.pandas.overridePythonAttrs(old: rec { version = "0.19.1"; name = "pandas-${version}"; src = super.fetchPypi { @@ -786,7 +786,7 @@ with import <nixpkgs> {}; (let python = let packageOverrides = self: super: { - pandas = super.pandas.overridePythonPackage(old: {name="foo";}); + pandas = super.pandas.overridePythonAttrs(old: {name="foo";}); }; in pkgs.python35.override {inherit packageOverrides;}; |