net/py-url-normalize: Add py-url-normalize 1.4.3

URI Normalization function:
- Take care of IDN domains.
- Always provide the URI scheme in lowercase characters.
- Always provide the host, if any, in lowercase characters.
- Only perform percent-encoding where it is essential.
- Always use uppercase A-through-F characters when percent-encoding.
- Prevent dot-segments appearing in non-relative URI paths.
- For schemes that define a default authority, use an empty authority if the
  default is desired.
- For schemes that define an empty path to be equivalent to a path of "/", use
  "/".
- For schemes that define a port, use an empty port if the default is desired
- All portions of the URI must be utf-8 encoded NFC from Unicode strings

WWW: https://github.com/niksite/url-normalize
This commit is contained in:
Po-Chuan Hsieh 2022-04-16 11:39:12 +08:00
parent 773af17f8c
commit a104e33d54
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 41 additions and 0 deletions

View file

@ -1153,6 +1153,7 @@
SUBDIR += py-txrestapi
SUBDIR += py-uritemplate
SUBDIR += py-uritools
SUBDIR += py-url-normalize
SUBDIR += py-urlextract
SUBDIR += py-urllib3
SUBDIR += py-whois

View file

@ -0,0 +1,22 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= url-normalize
PORTVERSION= 1.4.3
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= URL normalization for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1649423650
SHA256 (url-normalize-1.4.3.tar.gz) = d23d3a070ac52a67b83a1c59a0e68f8608d1cd538783b401bc9de2c0fac999b2
SIZE (url-normalize-1.4.3.tar.gz) = 6024

View file

@ -0,0 +1,15 @@
URI Normalization function:
- Take care of IDN domains.
- Always provide the URI scheme in lowercase characters.
- Always provide the host, if any, in lowercase characters.
- Only perform percent-encoding where it is essential.
- Always use uppercase A-through-F characters when percent-encoding.
- Prevent dot-segments appearing in non-relative URI paths.
- For schemes that define a default authority, use an empty authority if the
default is desired.
- For schemes that define an empty path to be equivalent to a path of "/", use
"/".
- For schemes that define a port, use an empty port if the default is desired
- All portions of the URI must be utf-8 encoded NFC from Unicode strings
WWW: https://github.com/niksite/url-normalize