Commit Graph

15 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
Maxime Brunet
e33b7e1bad
oci-cli: install shell completion 2024-03-23 19:03:05 -07:00
Martin Weinelt
61ceb29920 oci-cli: fix click fetcher 2023-09-27 15:34:44 +02:00
Vladimír Čunát
9312c54bd0
treewide: drop a test in click 7.1.2
Man, copy&paste to five places is just great :-/

The referenced upstream patch should fix the compatibility,
but it won't apply cleanly to this version, so I dropped the test.
2023-08-07 17:04:03 +02:00
Martin Weinelt
ac66608eeb
oci-cli: relax oci constraint 2022-09-14 16:08:08 +02:00
Vladimír Čunát
0e304ff0d9
Merge #182953: fetchurl: disallow specifying both sha256 and hash 2022-08-24 17:05:37 +02:00
Vladimír Čunát
97afcab284
oci-cli: avoid duplicate hash in src.override 2022-08-23 17:10:16 +02:00
Fabian Affolter
2affd4e851 oci-cli: 3.7.2 -> 3.14.0 2022-08-13 22:13:30 +02:00
Martin Weinelt
c089f9c377 oci-cli: 3.6.0 -> 3.7.2
Pins jmespath to 0.10.0.
2022-04-15 03:29:35 +02:00
P. R. d. O
dfca474eaf
oci-cli: 3.5.0 -> 3.6.0 2022-03-11 16:33:20 -06:00
Jonathan Ringer
86e543e168 oci-cli: 3.4.1 -> 3.5.0 2022-02-11 10:26:12 -08:00
Fabian Affolter
ff5e6707f0 oci-cli: 2.23.0 -> 3.4.1 2022-01-10 10:48:43 +01:00
Robert Schütz
1ec5651913 treewide: use pythonPackages.python-dateutil instead of pythonPackages.dateutil 2021-07-03 13:45:57 +02:00
Michael Francis
18de273443 oci-cli: patch arrow version 2021-05-07 22:41:22 -07:00
ilian
a5a359aade oci-cli: init at 2.23.0 2021-04-14 19:33:30 +02:00