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.

51 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.6
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pyroute2
  12. PKG_HASH:=deae0e6191a04c3ee213c6fae6ed779602ef5da5ca5e2fa533f27bc04326bfbe
  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. VARIANT:=python3
  33. endef
  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. PYTHON3_PKG_SETUP_ARGS:=
  40. $(eval $(call Py3Package,$(PKG_NAME)))
  41. $(eval $(call BuildPackage,$(PKG_NAME)))
  42. $(eval $(call BuildPackage,$(PKG_NAME)-src))