mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
f5490954f5
The package excludes automat/_visualize.py (it needs the optional graphviz dependency), but the automat-visualize console script was still installed and imports that module, so it failed at runtime and broke the CI generic test. Skip the /usr/bin install so the package ships as a pure library. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2018-2020, 2023 Jeffery To
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-automat
|
|
PKG_VERSION:=25.4.16
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=automat
|
|
PKG_HASH:=0017591a5477066e90d26b0e696ddc143baafd87b588cfac8100bc6be9634de0
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
PKG_BUILD_DEPENDS:=python-setuptools-scm/host
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-automat
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Concise, idiomatic finite-state automata
|
|
URL:=https://github.com/glyph/Automat
|
|
DEPENDS:= \
|
|
+python3-light \
|
|
+python3-attrs
|
|
endef
|
|
|
|
define Package/python3-automat/description
|
|
Automat is a library for concise, idiomatic Python expression of
|
|
finite-state automata (particularly deterministic finite-state
|
|
transducers).
|
|
endef
|
|
|
|
define Py3Package/python3-automat/filespec
|
|
+|$(PYTHON3_PKG_DIR)
|
|
-|$(PYTHON3_PKG_DIR)/automat/_visualize.py
|
|
endef
|
|
|
|
# Drop the automat-visualize binary: it imports automat._visualize,
|
|
# which is excluded above because it needs the optional graphviz dependency.
|
|
define Py3Package/python3-automat/install
|
|
:
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-automat))
|
|
$(eval $(call BuildPackage,python3-automat))
|
|
$(eval $(call BuildPackage,python3-automat-src))
|