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-2020 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.14
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pyroute2
  12. PKG_HASH:=774c5ecf05fe40f0f601a7ab33c19ca0b24f00bf4a094e58deaa5333b7ca49b5
  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))