summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authoradisbladis <adisbladis@gmail.com>2024-08-02 23:10:35 +1200
committeradisbladis <adisbladis@gmail.com>2024-08-03 12:18:56 +1200
commite0816431a23a06692d86c0b545b4522b9a9bc939 (patch)
treefa70edcddaf56bc605f2ecdf153b2d9ba162d67a /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentadb3cee87d7bc92c97100efc7e30aeb6301e5fb6 (diff)
treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by: ``` nix with import <nixpkgs> { }; let python' = python3.override { packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337"; }); }; }; in python'.pkgs.python.pkgs.requests ``` which returns the _non_ overriden requests. And the same with `self`: ``` with import <nixpkgs> { }; let python' = python3.override { self = python'; packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337"; }); }; }; in python'.pkgs.python.pkgs.requests ``` which returns the overriden requests. This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions