1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/servers/etebase/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.6 KiB
Nix
Raw Normal View History

2023-01-04 09:41:25 +00:00
{ lib
, fetchFromGitHub
, python3
, withLdap ? false
2023-01-04 09:41:25 +00:00
, withPostgres ? true
, nix-update-script
, nixosTests
2023-01-04 09:41:25 +00:00
}:
2020-11-27 22:12:41 +00:00
python3.pkgs.buildPythonApplication rec {
2020-11-27 22:12:41 +00:00
pname = "etebase-server";
version = "0.14.2";
2020-11-27 22:12:41 +00:00
src = fetchFromGitHub {
owner = "etesync";
repo = "server";
rev = "refs/tags/v${version}";
hash = "sha256-W2u/d8X8luOzgy1CLNgujnwaoO1pR1QO1Ma7i4CGkdU=";
2020-11-27 22:12:41 +00:00
};
patches = [ ./secret.patch ];
doCheck = false;
propagatedBuildInputs = with python3.pkgs; [
aiofiles
django_4
2022-03-28 19:29:41 +01:00
fastapi
2020-11-27 22:12:41 +00:00
msgpack
pynacl
2022-10-15 16:32:49 +01:00
redis
uvicorn
websockets
watchfiles
uvloop
pyyaml
python-dotenv
httptools
typing-extensions
] ++ lib.optional withLdap python-ldap
++ lib.optional withPostgres psycopg2;
2020-11-27 22:12:41 +00:00
postInstall = ''
2020-11-27 22:12:41 +00:00
mkdir -p $out/bin $out/lib
cp manage.py $out/bin/etebase-server
2020-11-27 22:12:41 +00:00
wrapProgram $out/bin/etebase-server --prefix PYTHONPATH : "$PYTHONPATH"
chmod +x $out/bin/etebase-server
'';
passthru.updateScript = nix-update-script {};
passthru.python = python3;
# PYTHONPATH of all dependencies used by the package
passthru.pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
passthru.tests = {
nixosTest = nixosTests.etebase-server;
};
2020-11-27 22:12:41 +00:00
meta = with lib; {
homepage = "https://github.com/etesync/server";
2023-01-04 09:41:25 +00:00
description = "Etebase (EteSync 2.0) server so you can run your own";
mainProgram = "etebase-server";
2023-01-04 09:41:25 +00:00
changelog = "https://github.com/etesync/server/blob/${version}/ChangeLog.md";
2020-11-27 22:12:41 +00:00
license = licenses.agpl3Only;
2024-01-23 22:05:11 +00:00
maintainers = with maintainers; [ felschr phaer ];
2020-11-27 22:12:41 +00:00
};
}