blob: 45996ca1fff3b315a7b25e905591c1d42a66b0df [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2019-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-pyroute2
11PKG_VERSION:=0.7.9
12PKG_RELEASE:=1
13
14PYPI_NAME:=pyroute2
15PKG_HASH:=b69d82f140b0774317d7ba40f6c5fa1d755098ba3f3eb619982d16e750dc631a
16
17PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz>
18PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
19PKG_LICENSE_FILES:=LICENSE.GPL-2.0-or-later LICENSE.Apache-2.0
20
21include ../pypi.mk
22include $(INCLUDE_DIR)/package.mk
23include ../python3-package.mk
24
25define Package/python3-pyroute2
26 SUBMENU:=Python
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=Python netlink library
30 URL:=https://github.com/svinota/pyroute2
31 DEPENDS:=+python3
32endef
33
34define Package/python3-pyroute2/description
35 Pyroute2 is a pure Python netlink library.
36 The library was started as an RTNL protocol implementation,
37 but now it supports many netlink protocols.
38endef
39
40$(eval $(call Py3Package,python3-pyroute2))
41$(eval $(call BuildPackage,python3-pyroute2))
42$(eval $(call BuildPackage,python3-pyroute2-src))