From d65204093c43f3ca64b114d7381175e5d9dd08bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mat=C4=9Bjek?= Date: Mon, 8 Apr 2019 15:30:44 +0200 Subject: [PATCH] python3-pyroute2: add new package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Matějek --- lang/python/python3-pyroute2/Makefile | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lang/python/python3-pyroute2/Makefile diff --git a/lang/python/python3-pyroute2/Makefile b/lang/python/python3-pyroute2/Makefile new file mode 100644 index 000000000..83c28b005 --- /dev/null +++ b/lang/python/python3-pyroute2/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/) +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python3-pyroute2 +PKG_VERSION:=0.5.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=pyroute2-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyroute2 +PKG_HASH:=ad679a91d453fe8426c4076d0da3a67265e5ccfe641879d75c9bc7660d075dfa + +PKG_BUILD_DIR:=$(BUILD_DIR)/pyroute2-$(PKG_VERSION) + +PKG_MAINTAINER:=Martin Matějek +PKG_LICENSE:=GPL-2.0-or-later Apache-2.0 +PKG_LICENSE_FILES:=LICENSE.GPL.v2 LICENSE.Apache.v2 + +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-pyroute2 + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=Python netlink library + URL:=http://github.com/svinota/pyroute2 + DEPENDS:= \ + +python3-light \ + +python3-distutils \ + +python3-logging \ + +python3-multiprocessing \ + +python3-sqlite3 \ + +python3-ctypes + VARIANT:=python3 +endef + +define Package/python3-pyroute2/description + Pyroute2 is a pure Python netlink library. + The library was started as an RTNL protocol implementation, + but now it supports many netlink protocols. +endef + +PYTHON3_PKG_SETUP_ARGS:= + +$(eval $(call Py3Package,$(PKG_NAME))) +$(eval $(call BuildPackage,$(PKG_NAME))) +$(eval $(call BuildPackage,$(PKG_NAME)-src))