etebase-server: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-04 10:41:25 +01:00 committed by GitHub
parent 960db9bafc
commit 81af5f82eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,18 @@
{ lib, fetchFromGitHub, buildPythonPackage, aiofiles, django_3
, fastapi, msgpack, pynacl, redis, typing-extensions
, withLdap ? true, python-ldap
, withPostgres ? true, psycopg2 }:
{ lib
, fetchFromGitHub
, buildPythonPackage
, aiofiles
, django_3
, fastapi
, msgpack
, pynacl
, redis
, typing-extensions
, withLdap ? true
, python-ldap
, withPostgres ? true
, psycopg2
}:
buildPythonPackage rec {
pname = "etebase-server";
@ -11,8 +22,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "etesync";
repo = "server";
rev = version;
sha256 = "sha256-+MSNX+CFmIQII+SFjM2TQKCgRMOTdsOIVAP8ur4WjQY=";
rev = "refs/tags/${version}";
hash = "sha256-+MSNX+CFmIQII+SFjM2TQKCgRMOTdsOIVAP8ur4WjQY=";
};
patches = [ ./secret.patch ];
@ -25,8 +36,11 @@ buildPythonPackage rec {
pynacl
redis
typing-extensions
] ++ lib.optional withLdap python-ldap
++ lib.optional withPostgres psycopg2;
] ++ lib.optional withLdap [
python-ldap
] ++ lib.optional withPostgres [
psycopg2
];
installPhase = ''
mkdir -p $out/bin $out/lib
@ -38,7 +52,8 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://github.com/etesync/server";
description = "An Etebase (EteSync 2.0) server so you can run your own.";
description = "An Etebase (EteSync 2.0) server so you can run your own";
changelog = "https://github.com/etesync/server/blob/${version}/ChangeLog.md";
license = licenses.agpl3Only;
maintainers = with maintainers; [ felschr ];
};