python-dns: Change download source, remove incorrect PKG_CPE_ID
authorJeffery To <redacted>
Thu, 30 Apr 2020 20:53:48 +0000 (04:53 +0800)
committerJeffery To <redacted>
Thu, 30 Apr 2020 20:53:48 +0000 (04:53 +0800)
This changes the package to download from PyPI (using pypi.mk) and
removes the incorrect PKG_CPE_ID.

The CPE id was for Debian's python-dns package which contains PyDNS
("pydns" on PyPI). This package contains "dnspython" from PyPI.

Signed-off-by: Jeffery To <redacted>
lang/python/python-dns/Makefile

index fe7fd9d1c1a22f4796ed30321556879b3e916d8b..2c71f078ba4541a3f363712ef593c985c5ac8355 100644 (file)
@@ -11,17 +11,15 @@ PKG_NAME:=python-dns
 PKG_VERSION:=1.16.0
 PKG_RELEASE:=2
 
-PKG_SOURCE:=dnspython-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://www.dnspython.org/kits/1.16.0/
-PKG_HASH:=4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9
+PYPI_NAME:=dnspython
+PYPI_SOURCE_EXT:=zip
+PKG_HASH:=36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01
 
 PKG_LICENSE:=ISC
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
-PKG_CPE_ID:=cpe:/a:debian:python-dns
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/dnspython-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
git clone https://git.99rst.org/PROJECT