matrix-synapse: init at 0.12.0
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{ pkgs, stdenv, buildPythonPackage, pythonPackages, fetchurl, fetchFromGitHub }:
|
||||
let
|
||||
matrix-angular-sdk = buildPythonPackage rec {
|
||||
name = "matrix-angular-sdk-${version}";
|
||||
version = "0.6.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/m/matrix-angular-sdk/matrix-angular-sdk-${version}.tar.gz";
|
||||
sha256 = "1vknhmibb8gh8lng50va2cdvng5xm7vqv9dl680m3gj38pg0bv8a";
|
||||
};
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
name = "matrix-synapse-${version}";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "synapse";
|
||||
rev = "f35f8d06ea58e2d0cdccd82924c7a44fd93f4c38";
|
||||
sha256 = "0b0k1am9lh0qglagc06m91qs26ybv37k7wpbg5333x8jaf5d1si4";
|
||||
};
|
||||
|
||||
patches = [ ./matrix-synapse.patch ];
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [
|
||||
blist canonicaljson daemonize dateutil frozendict pillow pybcrypt pyasn1
|
||||
pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests2
|
||||
service-identity signedjson systemd twisted15 ujson unpaddedbase64 pyyaml
|
||||
matrix-angular-sdk
|
||||
];
|
||||
|
||||
# Checks fail because of Tox.
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = with pythonPackages; [
|
||||
mock setuptoolsTrial
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = https://matrix.org;
|
||||
description = "Matrix reference homeserver";
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
diff --git a/homeserver b/homeserver
|
||||
new file mode 120000
|
||||
index 0000000..2f1d413
|
||||
--- /dev/null
|
||||
+++ b/homeserver
|
||||
@@ -0,0 +1 @@
|
||||
+synapse/app/homeserver.py
|
||||
\ No newline at end of file
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 9d24761..f3e6a00 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -85,6 +85,6 @@ setup(
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
long_description=long_description,
|
||||
- scripts=["synctl"] + glob.glob("scripts/*"),
|
||||
+ scripts=["synctl", "homeserver"] + glob.glob("scripts/*"),
|
||||
cmdclass={'test': Tox},
|
||||
)
|
||||
Reference in New Issue
Block a user