anchor.diff:      pgadmin4Dir = "/var/lib/pgadmin";
       pgadmin4LogDir = "/var/log/pgadmin";
   
  -    python-with-needed-packages = pkgs.python3.withPackages (ps: with ps; [
  -      selenium
  -      testtools
  -      testscenarios
  -      flask
  -      flask-babelex
  -      flask-babel
  -      flask-gravatar
  -      flask_login
  -      flask_mail
  -      flask_migrate
  -      flask_sqlalchemy
  -      flask_wtf
  -      flask-compress
  -      passlib
  -      pytz
  -      simplejson
  -      six
  -      sqlparse
  -      wtforms
  -      flask-paranoid
  -      psutil
  -      psycopg2
  -      python-dateutil
  -      sqlalchemy
  -      itsdangerous
  -      flask-security-too
  -      bcrypt
  -      cryptography
  -      sshtunnel
  -      ldap3
  -      gssapi
  -      flask-socketio
  -      eventlet
  -      httpagentparser
  -      user-agents
  -      wheel
  -      authlib
  -      qrcode
  -      pillow
  -      pyotp
  -      boto3
  -    ]);
     in
     {
       name = "pgadmin4";
  
positive.code: 
      nodes.machine = { pkgs, ... }: {
        imports = [ ./common/x11.nix ];
        environment.systemPackages = with pkgs; [
          pgadmin4
          postgresql
          python-with-needed-packages
          chromedriver
          chromium
        ];
        services.postgresql = {
          enable = true;
  
negative.code:           machine.succeed(
                'cd ${pgadmin4SrcDir}/pgadmin4-${pkgs.pgadmin4.version}/web \
                 && export FONTCONFIG_FILE=${pkgs.makeFontsConf { fontDirectories = [];}} \
                 && python regression/runtests.py --pkg feature_tests'
            )
  
        with subtest("run resql test"):
            machine.succeed(
                 'cd ${pgadmin4SrcDir}/pgadmin4-${pkgs.pgadmin4.version}/web \
                 && python regression/runtests.py --pkg resql'
            )
      '';
    })
  