b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-pyroute2 |
| 11 | PKG_VERSION:=0.7.9 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=pyroute2 |
| 15 | PKG_HASH:=b69d82f140b0774317d7ba40f6c5fa1d755098ba3f3eb619982d16e750dc631a |
| 16 | |
| 17 | PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz> |
| 18 | PKG_LICENSE:=GPL-2.0-or-later Apache-2.0 |
| 19 | PKG_LICENSE_FILES:=LICENSE.GPL-2.0-or-later LICENSE.Apache-2.0 |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define 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 |
| 32 | endef |
| 33 | |
| 34 | define 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. |
| 38 | endef |
| 39 | |
| 40 | $(eval $(call Py3Package,python3-pyroute2)) |
| 41 | $(eval $(call BuildPackage,python3-pyroute2)) |
| 42 | $(eval $(call BuildPackage,python3-pyroute2-src)) |