git.iko.soy/typeable/nixpkgs
on master help sign in
Python: overridePythonPackage -> overridePythonAttrs

to better fit the existing naming scheme. https://github.com/NixOS/nixpkgs/pull/26155#issuecomment-321279629

commitabdb58e407d0351894ea1ee32c3484a89f1e53cd authorFrederik Rietdijk <fridh@fridh.nl> dateSat 12 Aug 2017, 08:58 (9 years ago) parent026b60e
2 files changed+7−7
doc/languages-frameworks/python.md+3−3 pkgs/top-level/python-packages.nix+4−4
doc/languages-frameworks/python.md+3−3
@@ -547,7 +547,7 @@ All parameters from `mkDerivation` function are still supported.
547547
548548##### Overriding Python packages
549549
550−The `buildPythonPackage` function has a `overridePythonPackage` method that
550+The `buildPythonPackage` function has a `overridePythonAttrs` method that
551551can be used to override the package. In the following example we create an
552552environment where we have the `blaze` package using an older version of `pandas`.
553553We override first the Python interpreter and pass
@@ -559,7 +559,7 @@ with import <nixpkgs> {};
559559(let
560560 python = let
561561 packageOverrides = self: super: {
562− pandas = super.pandas.overridePythonPackage(old: rec {
562+ pandas = super.pandas.overridePythonAttrs(old: rec {
563563 version = "0.19.1";
564564 name = "pandas-${version}";
565565 src = super.fetchPypi {
@@ -786,7 +786,7 @@ with import <nixpkgs> {};
786786(let
787787 python = let
788788 packageOverrides = self: super: {
789− pandas = super.pandas.overridePythonPackage(old: {name="foo";});
789+ pandas = super.pandas.overridePythonAttrs(old: {name="foo";});
790790 };
791791 in pkgs.python35.override {inherit packageOverrides;};
792792
pkgs/top-level/python-packages.nix+4−4
@@ -37,17 +37,17 @@ let
3737 });
3838
3939 # Derivations built with `buildPythonPackage` can already be overriden with `override`, `overrideAttrs`, and `overrideDerivation`.
40− # This function introduces `overridePythonPackage` and it overrides the call to `buildPythonPackage`.
40+ # This function introduces `overridePythonAttrs` and it overrides the call to `buildPythonPackage`.
4141 makeOverridablePythonPackage = f: origArgs:
4242 let
4343 ff = f origArgs;
4444 overrideWith = newArgs: origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs);
4545 in
4646 if builtins.isAttrs ff then (ff // {
47− overridePythonPackage = newArgs: makeOverridable f (overrideWith newArgs);
47+ overridePythonAttrs = newArgs: makeOverridable f (overrideWith newArgs);
4848 })
4949 else if builtins.isFunction ff then {
50− overridePythonPackage = newArgs: makeOverridable f (overrideWith newArgs);
50+ overridePythonAttrs = newArgs: makeOverridable f (overrideWith newArgs);
5151 __functor = self: ff;
5252 }
5353 else ff;
@@ -22204,7 +22204,7 @@ in {
2220422204
2220522205 sphinx = callPackage ../development/python-modules/sphinx { };
2220622206
22207− sphinx_1_2 = self.sphinx.overridePythonPackage rec {
22207+ sphinx_1_2 = self.sphinx.overridePythonAttrs rec {
2220822208 name = "sphinx-1.2.3";
2220922209 src = pkgs.fetchurl {
2221022210 url = "mirror://pypi/s/sphinx/sphinx-1.2.3.tar.gz";