mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
878e80c596
* In 0.9 the entrypoint got removed as it's recommended to use
`python -m`[1]. However, our build layer for python relies on
that, so I added a patch to re-add this.
* The tests in the upstream sources appear abandoned, so those are
skipped. Therefore it's also pointless to add `pytest-runner` to the
`nativeBuildInputs` as it's not used and only blows up the build
closure.
A second patch modifies the requirements, so ow `pytest-runner` isn't
needed anymore.
[1] a565853c5e
29 lines
703 B
Diff
29 lines
703 B
Diff
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
|
|
|