etebase-server: init at 0.7.0
This commit is contained in:
parent
5db1ef1e53
commit
211cbfdb13
56
pkgs/servers/etebase/default.nix
Normal file
56
pkgs/servers/etebase/default.nix
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{ lib, python3, fetchFromGitHub }:
|
||||||
|
|
||||||
|
let
|
||||||
|
py = python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
django = super.django_3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
with py.pkgs;
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "etebase-server";
|
||||||
|
version = "0.7.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "etesync";
|
||||||
|
repo = "server";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1r2a7ki9w2h3l6rwqa3fzxjlqfj2lbgfrm8lynjhvcdv02s5abbi";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./secret.patch ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
asgiref
|
||||||
|
cffi
|
||||||
|
django
|
||||||
|
django-cors-headers
|
||||||
|
djangorestframework
|
||||||
|
drf-nested-routers
|
||||||
|
msgpack
|
||||||
|
psycopg2
|
||||||
|
pycparser
|
||||||
|
pynacl
|
||||||
|
pytz
|
||||||
|
six
|
||||||
|
sqlparse
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/lib
|
||||||
|
cp -r . $out/lib/etebase-server
|
||||||
|
ln -s $out/lib/etebase-server/manage.py $out/bin/etebase-server
|
||||||
|
wrapProgram $out/bin/etebase-server --prefix PYTHONPATH : "$PYTHONPATH"
|
||||||
|
chmod +x $out/bin/etebase-server
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/etesync/server";
|
||||||
|
description = "An Etebase (EteSync 2.0) server so you can run your own.";
|
||||||
|
license = licenses.agpl3Only;
|
||||||
|
maintainers = with maintainers; [ felschr ];
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/servers/etebase/secret.patch
Normal file
26
pkgs/servers/etebase/secret.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/etebase_server/settings.py b/etebase_server/settings.py
|
||||||
|
index 9baf8d3..501d9f6 100644
|
||||||
|
--- a/etebase_server/settings.py
|
||||||
|
+++ b/etebase_server/settings.py
|
||||||
|
@@ -23,11 +22,6 @@
|
||||||
|
# Quick-start development settings - unsuitable for production
|
||||||
|
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
|
||||||
|
|
||||||
|
-# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
|
-# See secret.py for how this is generated; uses a file 'secret.txt' in the root
|
||||||
|
-# directory
|
||||||
|
-SECRET_FILE = os.path.join(BASE_DIR, "secret.txt")
|
||||||
|
-
|
||||||
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
|
@@ -143,7 +137,7 @@
|
||||||
|
|
||||||
|
section = config["global"]
|
||||||
|
|
||||||
|
- SECRET_FILE = section.get("secret_file", SECRET_FILE)
|
||||||
|
+ SECRET_FILE = section.get("secret_file", None)
|
||||||
|
STATIC_ROOT = section.get("static_root", STATIC_ROOT)
|
||||||
|
STATIC_URL = section.get("static_url", STATIC_URL)
|
||||||
|
MEDIA_ROOT = section.get("media_root", MEDIA_ROOT)
|
||||||
|
|
@ -21634,6 +21634,8 @@ in
|
|||||||
|
|
||||||
eteroj.lv2 = libsForQt5.callPackage ../applications/audio/eteroj.lv2 { };
|
eteroj.lv2 = libsForQt5.callPackage ../applications/audio/eteroj.lv2 { };
|
||||||
|
|
||||||
|
etebase-server = with python3Packages; toPythonApplication etebase-server;
|
||||||
|
|
||||||
etesync-dav = callPackage ../applications/misc/etesync-dav {};
|
etesync-dav = callPackage ../applications/misc/etesync-dav {};
|
||||||
|
|
||||||
etherape = callPackage ../applications/networking/sniffers/etherape { };
|
etherape = callPackage ../applications/networking/sniffers/etherape { };
|
||||||
|
@ -2060,6 +2060,8 @@ in {
|
|||||||
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
|
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
etebase-server = callPackage ../servers/etebase { };
|
||||||
|
|
||||||
etesync = callPackage ../development/python-modules/etesync { };
|
etesync = callPackage ../development/python-modules/etesync { };
|
||||||
|
|
||||||
eth-hash = callPackage ../development/python-modules/eth-hash { };
|
eth-hash = callPackage ../development/python-modules/eth-hash { };
|
||||||
|
Loading…
Reference in New Issue
Block a user