Commit Graph

10 Commits

Author SHA1 Message Date
adisbladis
e0816431a2 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.
2024-08-03 12:18:56 +12:00
Sigmanificient
6dd44107ac treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
Robert Schütz
761ad75122 apache-airflow: fix build 2024-02-06 14:45:18 -08:00
Martin Weinelt
ba3412d88a
treewide: use sqlalchemy_1_4 instead of individual overrides
As long as sqlalchemy 1.4 is still maintained we should rather maintain
one derivation well, instead of many overrides barely.
2024-01-03 03:13:26 +01:00
Robert Scott
8f5fa25788 apache-airflow: 2.7.1 -> 2.7.3, fix build
overriding ever more python packages to placate airflow
2023-11-21 23:07:37 +00:00
Yueh-Shun Li
138565e8df apache-airflow: fix passthru overriding
Keep the `passthru` attributes from previousAttrs
while adding new attributes.

Co-authored-by: Graham Bennett <gbpdt@users.noreply.github.com>
2023-09-07 23:07:42 +02:00
Vladimír Čunát
9249f60087
treewide: fixup the embedded sqlalchemy
I got tired of doing this one commit per package.
2023-07-21 17:03:19 +02:00
Robert Scott
08126bf314 apache-airflow: remove from main pythonPackages
now exists solely as an application because its version demands
can't be met by the main pythonPackages. however, exposes its
modified python package set through passthru.pythonPackages which
can may be used by occasional external scripts etc. which need to
import airflow modules
2023-06-05 19:08:52 +01:00
Graham Bennett
48a0434ae7 python3Packages.apache-airflow: 2.5.1 -> 2.6.0 2023-06-04 13:55:59 +01:00