about summary refs log tree commit diff
path: root/pkgs/tools/admin/pgadmin
AgeCommit message (Collapse)AuthorFilesLines
2024-04-17treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessarySandro Jäckel1-2/+2
2024-04-10Merge pull request #302812 from gador/pgadmin-darwinSandro1-4/+15
pgadmin4: add darwin build
2024-04-09pgadmin4: add darwin buildFlorian Brandes1-4/+15
fixexs #281214 Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-04-09pgadmin4: fix CSRF issueFlorian Brandes1-1/+12
Without the downgrade of flask-security-too to 5.4.1 pgadmin4 is unusable, because one cannot login. Alternatively one could disable CSRF altogether with the module. This would still make the desktop version unusable and impact security. Therefore flask-security-too is being downgraded. Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-04-05pgadmin4: 8.4 -> 8.5Florian Brandes2-16/+16
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-03-14pgadmin4: 8.3 -> 8.4Florian Brandes2-18/+140
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-02-10pgadmin4: 8.2 -> 8.3Florian Brandes2-9/+56
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-01-26pgadmin4: remove flask-babelexFlorian Brandes1-1/+0
babelex has been dropped and can be removed. Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-01-13pgadmin: 8.1 -> 8.2Florian Brandes3-58/+17
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-12-17pgadmin: cleanupFlorian Brandes1-2/+0
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-12-17pgadmin: 8.0 -> 8.1Florian Brandes2-47/+47
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-11-23pgadmin: 7.8 -> 8.0Florian Brandes2-1390/+2530
Release notes: https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_8_0.html Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-11-23pgadmin4: 7.7 -> 7.8Florian Brandes2-50/+260
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-11-23pgadmin: migrate to prefetch-yarn-depsFelix Buehler1-3/+3
2023-10-28pgadmin4: fix build due to Flask updateFlorian Brandes1-1/+56
Also updates security-flask-too from 5.3.0 -> 5.3.2 Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-10-20pgadmin4: 7.6 -> 7.7Florian Brandes3-98/+68
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-10-20pgadmin4: 7.5 -> 7.6Florian Brandes3-55/+111
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-08-24python310Packages.flask-migrate: rename from flask_migratenatsukium1-1/+1
2023-08-24python310Packages.flask-mail: rename from flask_mailnatsukium1-1/+1
2023-07-27pgadmin4: 7.4 -> 7.5Florian Brandes1-4/+8
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-07-03pgadmin4: 7.3 -> 7.4Florian Brandes3-1516/+2055
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-06-07pgadmin4: 7.2 -> 7.3Florian Brandes2-42/+22
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-06-02pgadmin4: 7.1 -> 7.2Florian Brandes1-2/+3
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-23pgadmin4: remove color from update script, redirect outputFlorian Brandes1-18/+14
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-19pgadmin4: remove comments and add exit trap to update.shFlorian Brandes1-39/+22
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-18pgadmin4: add update scriptFlorian Brandes1-0/+130
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-15pgadmin4: 7.0 -> 7.1Florian Brandes2-4/+10799
Upstream has changed their `yarn.lock` file format to v2. This introduces complications with nixpkgs, which needs the v1 file format. There is also a number of problems with the v2 version (e.g. reproducibility or missing integrity fields) which makes the direct use of v2 lockfile impossible. Due to this change, we will need to convert the lockfile beforehand and add it to nixpkgs. Due to issues with reproducibility it isn't feasable to convert the lockfile within the `pgadmin` derivation. For this commit I added the converted `yarn.lock` file and will add the corresponding update script, once #231687 has been merged. (This adds the tool to convert most of the v2 file to v1 and adds metadata to the lockfile) Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-04-30pgadmin4: fix buildFlorian Brandes5-22647/+33
since the new release of 7.0, the `generated` directory isn't included in the tarball anymore. This commit will build the frontend so pgadmin can function again. Fixes https://github.com/NixOS/nixpkgs/pull/226675#issuecomment-1529033940 Also this commit will switch to the Github source and will not need the package.json and yarn.{lock,nix} files anymore, since the mkYarnModules part has been removed. Also, since we don't depend on those files anymore and we switched to Github, the `update.sh` script has been superseeded and isn't needed anymore. Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-04-21pgadmin4: 6.21 -> 7.0Florian Brandes5-1484/+1621
Changelog: https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_0.html Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-03-21pgadmin4: 6.20 -> 6.21Florian Brandes4-20/+4
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-03-05pgadmin4: fix python dependency hellFlorian Brandes1-5/+32
due to upstreams fix on old versions of flask and flask-security-too, we'll need to pin other older versions, too. Also fix extra_require bug with requirements.txt Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-03-04Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt4-10/+54
2023-03-03pgadmin: Use hash and SRI hashesMartin Weinelt1-3/+3
With the python package set moving to hash, overriding the fetcher and reintroducing sha256 breaks eval, due to multiple hashes passed.
2023-03-02pgadmin4: 6.19 -> 6.20Florian Brandes4-10/+54
Changelog: https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_6_20.html Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09pgadmin4: add option to enable desktop modeFlorian Brandes2-1/+38
By default, pgadmin4 uses SERVER_MODE = True. This requires access to system directories (e.g. /var/lib/pgadmin). There is no easy way to change this mode during runtime. One has to change or add config files withing pgadmin's directory structure to change it or add a system-wide config file under `/etc/pgadmin`[1]. This isn't always easy to achive or may not be possible at all. For those usecases this implements a switch in the pgadmin4 derivation and adds a new top-level package `pgadmin4-desktopmode`. This builds in DESKTOP MODE and allows the usage of pgadmin4 without the nixOS module and without access to system-wide directories. pgadmin4 module saves the configuration to /etc/pgadmin/config_system.py pgadmin4-desktopmode tries to read that as well. This normally fails with a PermissionError, as the config file is owned by the user of the pgadmin module. With the check-system-config-dir.patch this will just throw a warning but will continue and not read the file. If we run pgadmin4-desktopmode as root (something one really shouldn't do), it can read the config file and fail, because of the wrong config for desktopmode. [1]https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09pgadmin4: move package tests back into the packageFlorian Brandes1-62/+88
We test pgadmin in nixosTests, because it needs a running postgresql instance. This is now unnecessary since we can do so in the package itself. This reduces the complexity of pgadmin and removes the need for the extra nixosTests. Also setting SERVER_MODE in `pkg/pip/setup_pip.py` does not have any effect on the final package, so we remove it. In NixOS, we use the module, which expects SERVER_MODE to be true (which it defaults to). In non-NixOS installations, we will need the directory /var/lib/pgadmin and /var/log/pgadmin Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-03pgadmin4: 6.18 -> 6.19Florian Brandes4-187/+51
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-03pgadmin: pin flask-babel to fix build failureFlorian Brandes1-0/+12
pgadmin needs an older version of flask-security-too, which is incompatible with the update of flask-babel. This commit pins the version. Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-01-26pgadmin: Fix buildFlorian Brandes1-1/+1
- change `sha256` to `hash` in override Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-01-16pgadmin: fix buildFlorian Brandes1-0/+9
pin flask-sqlalchemy to a version < 3 to work with the other flask override. Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-12-23pgadmin4: 6.17 -> 6.18Florian Brandes4-13/+13
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-12-17treewide: fix typosfigsoda1-1/+1
2022-12-03pgamin4: 6.16 -> 6.17Thomas Gerbet4-6696/+4663
Fixes CVE-2022-4223. https://www.pgadmin.org/docs/pgadmin4/development/release_notes_6_17.html
2022-11-22pgadmin4: 6.15 -> 6.16Florian Brandes4-169/+109
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-10-29pgadmin4: 6.14 -> 6.15Florian Brandes4-11/+133
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-10-17python310Packages.flask-login: normalise package nameSandro Jäckel1-1/+1
2022-10-01pgadmin4: 6.13 -> 6.14Florian Brandes4-225/+2325
include fix for flask-security-too update Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-09-22pgadmin4: 6.12 -> 6.13Florian Brandes2-8/+38
- Add update script - Add email options to pgadmin4 nixOS module - Add override for flask 2.2 Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-08-06pgadmin4: 6.11 -> 6.12Florian Brandes5-1089/+1397
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-07-30pgadmin: remove all version constraintsFlorian Brandes1-11/+1
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>