bluez-tools: Add package bluezetools
[feed/packages.git] / lang / python / python-twisted / Makefile
1 #
2 # Copyright (C) 2006-2011, 2015-2018 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-twisted
11 PKG_VERSION:=21.7.0
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=Twisted
15 PKG_HASH:=2cd652542463277378b0d349f47c62f20d9306e57d1247baabd6d1d38a109006
16
17 PKG_BUILD_DEPENDS:=libtirpc
18
19 PKG_LICENSE:=MIT
20 PKG_LICENSE_FILES:=LICENSE
21 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
22 PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
23
24 include ../pypi.mk
25 include $(INCLUDE_DIR)/package.mk
26 include ../python3-package.mk
27
28 define Package/python3-twisted
29 SECTION:=lang
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 TITLE:=Asynchronous networking framework
33 URL:=https://twistedmatrix.com/
34 DEPENDS:= \
35 +python3 \
36 +python3-appdirs \
37 +python3-attrs \
38 +python3-automat \
39 +python3-bcrypt \
40 +python3-constantly \
41 +python3-cryptography \
42 +python3-idna \
43 +python3-incremental \
44 +python3-hyperlink \
45 +python3-pkg-resources \
46 +python3-pyasn1 \
47 +python3-pyopenssl \
48 +python3-service-identity \
49 +python3-typing-extensions \
50 +python3-zope-interface
51 endef
52
53 define Package/python3-twisted/description
54 Twisted is a networking engine written in Python, supporting numerous
55 protocols. It contains a web server, numerous chat clients, chat servers,
56 mail servers, and more.
57 endef
58
59 define Build/Configure
60 $(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
61 endef
62
63 define Py3Package/python3-twisted/filespec
64 +|$(PYTHON3_PKG_DIR)
65 -|$(PYTHON3_PKG_DIR)/twisted/conch/scripts/tkconch.py
66 endef
67
68 define Py3Package/python3-twisted/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
71 for bin in $(1)/usr/bin/*; do \
72 mv $$$$bin $$$${bin}3 ; \
73 $(LN) $$$${bin##*/}3 $$$$bin ; \
74 done
75 endef
76
77 $(eval $(call Py3Package,python3-twisted))
78 $(eval $(call BuildPackage,python3-twisted))
79 $(eval $(call BuildPackage,python3-twisted-src))