blob: 4583683bf7fc3f92791411b2f660c420bb38eb27 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-hyperlink
11PKG_VERSION:=21.0.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=hyperlink
15PKG_HASH:=427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21include ../pypi.mk
22include $(INCLUDE_DIR)/package.mk
23include ../python3-package.mk
24
25define 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
35endef
36
37define Package/python3-hyperlink/description
38Hyperlink provides a pure-Python implementation of immutable URLs. Based
39on RFC 3986 and 3987, the Hyperlink URL makes working with both URIs and
40IRIs easy.
41endef
42
43define Py3Package/python3-hyperlink/filespec
44+|$(PYTHON3_PKG_DIR)
45-|$(PYTHON3_PKG_DIR)/hyperlink/hypothesis.py
46endef
47
48$(eval $(call Py3Package,python3-hyperlink))
49$(eval $(call BuildPackage,python3-hyperlink))
50$(eval $(call BuildPackage,python3-hyperlink-src))