b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2018-2020, 2023 Jeffery To |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-automat |
| 11 | PKG_VERSION:=22.10.0 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=Automat |
| 15 | PKG_HASH:=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e |
| 16 | |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | PKG_BUILD_DEPENDS:=python-setuptools-scm/host |
| 22 | |
| 23 | include ../pypi.mk |
| 24 | include $(INCLUDE_DIR)/package.mk |
| 25 | include ../python3-package.mk |
| 26 | |
| 27 | define Package/python3-automat |
| 28 | SECTION:=lang |
| 29 | CATEGORY:=Languages |
| 30 | SUBMENU:=Python |
| 31 | TITLE:=Concise, idiomatic finite-state automata |
| 32 | URL:=https://github.com/glyph/Automat |
| 33 | DEPENDS:= \ |
| 34 | +python3-light \ |
| 35 | +python3-attrs \ |
| 36 | +python3-six |
| 37 | endef |
| 38 | |
| 39 | define Package/python3-automat/description |
| 40 | Automat is a library for concise, idiomatic Python expression of |
| 41 | finite-state automata (particularly deterministic finite-state |
| 42 | transducers). |
| 43 | endef |
| 44 | |
| 45 | define Py3Package/python3-automat/filespec |
| 46 | +|$(PYTHON3_PKG_DIR) |
| 47 | -|$(PYTHON3_PKG_DIR)/automat/_visualize.py |
| 48 | endef |
| 49 | |
| 50 | $(eval $(call Py3Package,python3-automat)) |
| 51 | $(eval $(call BuildPackage,python3-automat)) |
| 52 | $(eval $(call BuildPackage,python3-automat-src)) |