b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-hyperlink |
| 11 | PKG_VERSION:=21.0.0 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=hyperlink |
| 15 | PKG_HASH:=427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b |
| 16 | |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define Package/python3-hyperlink |
| 26 | SECTION:=lang |
| 27 | CATEGORY:=Languages |
| 28 | SUBMENU:=Python |
| 29 | TITLE:=Pure-Python immutable URLs |
| 30 | URL:=https://github.com/python-hyper/hyperlink |
| 31 | DEPENDS:= \ |
| 32 | +python3-light \ |
| 33 | +python3-codecs \ |
| 34 | +python3-idna |
| 35 | endef |
| 36 | |
| 37 | define Package/python3-hyperlink/description |
| 38 | Hyperlink provides a pure-Python implementation of immutable URLs. Based |
| 39 | on RFC 3986 and 3987, the Hyperlink URL makes working with both URIs and |
| 40 | IRIs easy. |
| 41 | endef |
| 42 | |
| 43 | define Py3Package/python3-hyperlink/filespec |
| 44 | +|$(PYTHON3_PKG_DIR) |
| 45 | -|$(PYTHON3_PKG_DIR)/hyperlink/hypothesis.py |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call Py3Package,python3-hyperlink)) |
| 49 | $(eval $(call BuildPackage,python3-hyperlink)) |
| 50 | $(eval $(call BuildPackage,python3-hyperlink-src)) |