aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/servers/mautrix-telegram/0001-Re-add-entrypoint.patch
blob: 448e7017a6c3dbaebf25fa3c5e6af71e25739d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From f4a612e1c8501d2a1683003bb121daa6d46155ca Mon Sep 17 00:00:00 2001
From: Maximilian Bosch <maximilian@mbosch.me>
Date: Sun, 29 Nov 2020 20:45:16 +0100
Subject: [PATCH 1/2] Re-add entrypoint

---
 setup.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/setup.py b/setup.py
index 068c351..95dbf89 100644
--- a/setup.py
+++ b/setup.py
@@ -51,6 +51,12 @@ setuptools.setup(
     extras_require=extras_require,
     python_requires="~=3.6",
 
+    entry_points={
+        'console_scripts': [
+            'mautrix-telegram=mautrix_telegram.__main__:main'
+        ]
+    },
+
     setup_requires=["pytest-runner"],
     tests_require=["pytest", "pytest-asyncio", "pytest-mock"],
 
-- 
2.28.0