blob: 83fc3ced67bc1a1717647379762ca795d379d584 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-automat
11PKG_VERSION:=22.10.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=Automat
15PKG_HASH:=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21PKG_BUILD_DEPENDS:=python-setuptools-scm/host
22
23include ../pypi.mk
24include $(INCLUDE_DIR)/package.mk
25include ../python3-package.mk
26
27define 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
37endef
38
39define Package/python3-automat/description
40Automat is a library for concise, idiomatic Python expression of
41finite-state automata (particularly deterministic finite-state
42transducers).
43endef
44
45define Py3Package/python3-automat/filespec
46+|$(PYTHON3_PKG_DIR)
47-|$(PYTHON3_PKG_DIR)/automat/_visualize.py
48endef
49
50$(eval $(call Py3Package,python3-automat))
51$(eval $(call BuildPackage,python3-automat))
52$(eval $(call BuildPackage,python3-automat-src))