etebase-server: add option withPostgres

This commit is contained in:
Rvfg 2022-11-04 11:18:44 +08:00
parent 9cac1e1384
commit bdb03bc365
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
{ lib, fetchFromGitHub, buildPythonPackage, aiofiles, django_3
, fastapi, msgpack, pynacl, redis, typing-extensions
, withLdap ? true, python-ldap }:
, withLdap ? true, python-ldap
, withPostgres ? true, psycopg2 }:
buildPythonPackage rec {
pname = "etebase-server";
@ -24,7 +25,8 @@ buildPythonPackage rec {
pynacl
redis
typing-extensions
] ++ lib.optional withLdap python-ldap;
] ++ lib.optional withLdap python-ldap
++ lib.optional withPostgres psycopg2;
installPhase = ''
mkdir -p $out/bin $out/lib