Commit Graph

17 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
Victor Engmark
d83c8c4a5b
baserow: fix typo 2024-04-30 16:40:25 +12:00
Sandro Jäckel
653837881e
treewide: replace lib/${python.libPrefix}/site-packages with its shorthand ${python.sitePackages}
which should be always preferred
2024-01-30 19:56:57 +01:00
Felix Buehler
63f5f08857 python311Packages.zope-*: rename from zope_* 2024-01-06 21:04:16 +01:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
Vladimír Čunát
d5732d9669
Merge branch 'staging-next' into staging 2023-08-05 07:45:29 +02:00
github-actions[bot]
0542af4e29
Merge master into staging-next 2023-08-04 00:02:04 +00:00
Martin Weinelt
09f5e7d840
Merge pull request #245436 from mweinelt/django-default
python310Packages.django: migrate to django_4
2023-08-04 01:55:19 +02:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Martin Weinelt
f4d64ea149
baserow: pin django_3 2023-08-03 14:35:39 +02:00
Sandro Jäckel
f88e0be2a3 baserow: don't require outdated peer dependencies
jsonschema no longer requires pyrsistent but the outdated lock files
still think thats the case. There is no point in peer dependency pinning
in nixpkgs, so we might as well use the input files with only direct
dependencies.
2023-07-28 12:13:29 +02:00
Martin Weinelt
750e746393
baserow: Propagate pyparsing 2023-03-12 19:27:18 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Martin Weinelt
9de9273f33
baserow: Use antlr4_9 in antlr4-python3-runtime
and use buildPythonApplication for the package.
2022-12-28 12:20:56 +01:00
Fabian Affolter
be062905d3 baserow: 1.10.2 -> 1.12.1 2022-10-27 21:43:00 +02:00
Raito Bezarius
4935d7e9fb baserow: unbreak the backend 2022-08-31 22:29:05 +02:00
Jonas Heinrich
6323269208 baserow: init at 1.10.1 2022-07-16 15:00:32 -04:00