Commit Graph

7 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
GetPsyched
f98ec4f73c treewide: update meta.description to fit the guidelines 2024-01-09 17:12:31 +01:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
natsukium
deef8ff293
python311Packages.tvdb-api: rename from tvdb_api 2023-10-20 18:33:01 +09:00
Weijia Wang
13600367b2 treewide: misc: use top-level fetchPypi 2023-05-25 17:07:31 +03:00
Nikola Knezevic
aae8cfd998 tvnamer: add setuptools dependency to requests-cache 0.5.2
tvnamer has a direct dependency on old version of requests-cache 0.5.2.
Unfortunately, it was failing to build as it was missing setuptools.
This change adds this dependency. Along with the fixes to tvdb_api, now
tvnamer correctly builds.
2023-02-18 14:56:34 +08:00
Peter Hoeg
dafd928256 tvnamer: move out of python3Packages
tvnamer is an application and should as such never have existed under
python3Packages so move it out where it belongs.

At the same time override tvdb_api to use an older requests-cache as it
has a hard requirement on requests-cache < 0.6.
2021-07-05 14:09:24 +08:00