Commit Graph

9 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
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
R. Ryantm
45c9392111 pacu: 1.5.3 -> 1.6.0 2024-05-28 23:00:52 +00:00
R. Ryantm
f21b4571e8 pacu: 1.5.2 -> 1.5.3 2024-04-15 16:32:29 +00:00
Fabian Affolter
573b674cba pacu: format with nixfmt 2024-04-12 09:58:43 +02:00
Fabian Affolter
8d24f24690 pacu: disable failing tests 2024-04-12 09:58:23 +02:00
Fabian Affolter
ef4e2f85f1 pacu: refactor 2024-04-12 09:56:28 +02:00
Fabian Affolter
49b04c6927 pacu: relax pycognito 2024-04-12 09:55:36 +02:00
Fabian Affolter
f33f019bb2 pacu: init at 1.5.2
AWS exploitation framework

https://github.com/RhinoSecurityLabs/pacu
2024-03-18 17:52:09 +01:00