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.

42 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2015-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:=ipaddress
  9. PKG_VERSION:=1.0.19
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/f0/ba/860a4a3e283456d6b7e2ab39ce5cf11a3490ee1a363652ac50abf9f0f5df
  13. PKG_HASH:=200d8686011d470b5e4de207d803445deee427455cd0cb7c982b68cf82524f81
  14. PKG_LICENSE:=Python-2.0
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. include $(INCLUDE_DIR)/package.mk
  17. $(call include_mk, python-package.mk)
  18. define Package/python-ipaddress
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. SUBMENU:=Python
  22. TITLE:=python-ipaddress
  23. URL:=https://github.com/phihag/ipaddress
  24. DEPENDS:=+python-light
  25. endef
  26. define Package/python-ipaddress/description
  27. Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
  28. endef
  29. define Build/Compile
  30. $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
  31. endef
  32. $(eval $(call PyPackage,python-ipaddress))
  33. $(eval $(call BuildPackage,python-ipaddress))