You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

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