You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2019 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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python3-pyroute2
  9. PKG_VERSION:=0.5.7
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=pyroute2
  12. PKG_HASH:=963fce07da2841456d39e3b932b071f6de28d23dadfae014022d67a752916f98
  13. PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz>
  14. PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
  15. PKG_LICENSE_FILES:=LICENSE.GPL.v2 LICENSE.Apache.v2
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/python3-pyroute2
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Python netlink library
  24. URL:=https://github.com/svinota/pyroute2
  25. DEPENDS:= \
  26. +python3-light \
  27. +python3-distutils \
  28. +python3-logging \
  29. +python3-multiprocessing \
  30. +python3-sqlite3 \
  31. +python3-ctypes
  32. endef
  33. define Package/python3-pyroute2/description
  34. Pyroute2 is a pure Python netlink library.
  35. The library was started as an RTNL protocol implementation,
  36. but now it supports many netlink protocols.
  37. endef
  38. PYTHON3_PKG_SETUP_ARGS:=
  39. $(eval $(call Py3Package,python3-pyroute2))
  40. $(eval $(call BuildPackage,python3-pyroute2))
  41. $(eval $(call BuildPackage,python3-pyroute2-src))