about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/mail/mailman/python.nix
blob: 288e48d814e423388ccdb5bbff04f3f50da16891 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ python3, fetchPypi }:

python3.override {
  packageOverrides = self: super: {
    # does not find tests
    alembic = super.alembic.overridePythonAttrs (oldAttrs: {
      doCheck = false;
    });
    # Fixes `AssertionError: database connection isn't set to UTC`
    psycopg2 = super.psycopg2.overridePythonAttrs (a: rec {
      version = "2.8.6";
      src = fetchPypi {
        inherit version;
        inherit (a) pname;
        sha256 = "fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543";
      };
    });
  };
}