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.

60 lines
1.4 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:=1
  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/python-automat/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=Concise, idiomatic finite-state automata
  26. URL:=https://github.com/glyph/Automat
  27. endef
  28. define Package/python3-automat
  29. $(call Package/python-automat/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python3-automat:python3-light \
  32. +PACKAGE_python3-automat:python3-attrs \
  33. +PACKAGE_python3-automat:python3-six
  34. VARIANT:=python3
  35. endef
  36. define Package/python3-automat/description
  37. Automat is a library for concise, idiomatic Python expression of
  38. finite-state automata (particularly deterministic finite-state
  39. transducers).
  40. .
  41. (Variant for Python3)
  42. endef
  43. define Py3Package/python3-automat/filespec
  44. +|$(PYTHON3_PKG_DIR)
  45. -|$(PYTHON3_PKG_DIR)/automat/_visualize.py
  46. endef
  47. $(eval $(call Py3Package,python3-automat))
  48. $(eval $(call BuildPackage,python3-automat))
  49. $(eval $(call BuildPackage,python3-automat-src))