This package will not build with the pyproject.toml-based build process because it has a build dependency on pytest-runner[1]. pytest-runner has been deprecated[2], so instead of adding a package for pytest-runner to fulfill the build dependency, force this package to use the old build process. [1]: https://gitlab.nic.cz/turris/python-ubus/-/blob/v0.1.1/setup.py#L35 [2]: https://github.com/pytest-dev/pytest-runner#deprecation-notice Signed-off-by: Jeffery To <jeffery.to@gmail.com>
42 lines
1,018 B
Makefile
42 lines
1,018 B
Makefile
#
|
|
# Copyright (C) 2018-2020 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:=python-ubus
|
|
PKG_VERSION:=0.1.1
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=ubus
|
|
PKG_HASH:=7e57bda989bc35b48c7075d03ec2818226e722bbf1bde138d7e7ea26d462682a
|
|
|
|
PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org>
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PYTHON3_PKG_FORCE_DISTUTILS_SETUP:=1
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-ubus
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Python3 ubus
|
|
URL:=https://gitlab.nic.cz/turris/python-ubus/
|
|
DEPENDS:=+libubus +libblobmsg-json +python3-light
|
|
endef
|
|
|
|
define Package/python3-ubus/description
|
|
Python bindings for ubus.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-ubus))
|
|
$(eval $(call BuildPackage,python3-ubus))
|
|
$(eval $(call BuildPackage,python3-ubus-src))
|