treewide: Use pypi.mk for Python packages
authorJeffery To <jeffery.to@gmail.com>
Sun, 20 Oct 2019 19:03:12 +0000 (03:03 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 30 Oct 2019 15:16:18 +0000 (23:16 +0800)
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
129 files changed:
devel/asu/Makefile
lang/python/Flask/Makefile
lang/python/Jinja2/Makefile
lang/python/MarkupSafe/Makefile
lang/python/Werkzeug/Makefile
lang/python/bcrypt/Makefile
lang/python/click/Makefile
lang/python/django-appconf/Makefile
lang/python/django-compressor/Makefile
lang/python/django-constance/Makefile
lang/python/django-formtools/Makefile
lang/python/django-jsonfield/Makefile
lang/python/django-picklefield/Makefile
lang/python/django-postoffice/Makefile
lang/python/django-ranged-response/Makefile
lang/python/django-restframework/Makefile
lang/python/django-statici18n/Makefile
lang/python/django-webpack-loader/Makefile
lang/python/django/Makefile
lang/python/django1/Makefile
lang/python/flup/Makefile
lang/python/gunicorn/Makefile
lang/python/itsdangerous/Makefile
lang/python/openpyxl/Makefile
lang/python/passlib/Makefile
lang/python/pillow/Makefile
lang/python/pyjwt/Makefile
lang/python/pyodbc/Makefile
lang/python/python-aiohttp-cors/Makefile
lang/python/python-aiohttp/Makefile
lang/python/python-appdirs/Makefile
lang/python/python-astral/Makefile
lang/python/python-async-timeout/Makefile
lang/python/python-attrs/Makefile
lang/python/python-automat/Makefile
lang/python/python-awscli/Makefile
lang/python/python-boto3/Makefile
lang/python/python-botocore/Makefile
lang/python/python-cachelib/Makefile
lang/python/python-cachetools/Makefile
lang/python/python-certifi/Makefile
lang/python/python-cffi/Makefile
lang/python/python-chardet/Makefile
lang/python/python-colorama/Makefile
lang/python/python-constantly/Makefile
lang/python/python-contextlib2/Makefile
lang/python/python-crcmod/Makefile
lang/python/python-crypto/Makefile
lang/python/python-cryptodome/Makefile
lang/python/python-cryptodomex/Makefile
lang/python/python-cryptography/Makefile
lang/python/python-curl/Makefile
lang/python/python-dateutil/Makefile
lang/python/python-defusedxml/Makefile
lang/python/python-docutils/Makefile
lang/python/python-dpkt/Makefile
lang/python/python-enum34/Makefile
lang/python/python-et_xmlfile/Makefile
lang/python/python-evdev/Makefile
lang/python/python-futures/Makefile
lang/python/python-gmpy2/Makefile
lang/python/python-gnupg/Makefile
lang/python/python-hyperlink/Makefile
lang/python/python-idna/Makefile
lang/python/python-ifaddr/Makefile
lang/python/python-incremental/Makefile
lang/python/python-influxdb/Makefile
lang/python/python-intelhex/Makefile
lang/python/python-ipaddress/Makefile
lang/python/python-jdcal/Makefile
lang/python/python-jmespath/Makefile
lang/python/python-jsonpath-ng/Makefile
lang/python/python-ldap/Makefile
lang/python/python-lxml/Makefile
lang/python/python-markdown/Makefile
lang/python/python-multidict/Makefile
lang/python/python-mysqlclient/Makefile
lang/python/python-netdisco/Makefile
lang/python/python-oauthlib/Makefile
lang/python/python-paho-mqtt/Makefile
lang/python/python-parsley/Makefile
lang/python/python-pcapy/Makefile
lang/python/python-ply/Makefile
lang/python/python-psycopg2/Makefile
lang/python/python-pyasn1-modules/Makefile
lang/python/python-pyasn1/Makefile
lang/python/python-pycparser/Makefile
lang/python/python-pyopenssl/Makefile
lang/python/python-pyotp/Makefile
lang/python/python-pyptlib/Makefile
lang/python/python-pyrsistent/Makefile
lang/python/python-pyserial/Makefile
lang/python/python-pytz/Makefile
lang/python/python-qrcode/Makefile
lang/python/python-rcssmin/Makefile
lang/python/python-requests-oauthlib/Makefile
lang/python/python-requests/Makefile
lang/python/python-rsa/Makefile
lang/python/python-s3transfer/Makefile
lang/python/python-schedule/Makefile
lang/python/python-sentry-sdk/Makefile
lang/python/python-service-identity/Makefile
lang/python/python-simplejson/Makefile
lang/python/python-six/Makefile
lang/python/python-slugify/Makefile
lang/python/python-sqlalchemy/Makefile
lang/python/python-twisted/Makefile
lang/python/python-txsocksx/Makefile
lang/python/python-urllib3/Makefile
lang/python/python-voluptuous-serialize/Makefile
lang/python/python-voluptuous/Makefile
lang/python/python-yaml/Makefile
lang/python/python-yarl/Makefile
lang/python/python-zeroconf/Makefile
lang/python/python-zope-interface/Makefile
lang/python/python3-bottle/Makefile
lang/python/python3-flask-login/Makefile
lang/python/python3-maxminddb/Makefile
lang/python/python3-netifaces/Makefile
lang/python/python3-pyroute2/Makefile
lang/python/python3-unidecode/Makefile
lang/python/ruamel-yaml/Makefile
lang/python/text-unidecode/Makefile
lang/python/vobject/Makefile
lang/python/xmltodict/Makefile
multimedia/youtube-dl/Makefile
net/obfsproxy/Makefile
net/radicale/Makefile
net/radicale2/Makefile

index 4f9076649b4626ddf2600f26c4c5279bb784e16a..9485ed9d7cc12e638ca644c03eea7baf42df1d1a 100644 (file)
@@ -10,15 +10,12 @@ PKG_RELEASE=2
 
 PKG_LICENSE:=GPL-3.0
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/asu/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=e60027cd531cc5b9b20d3321acc06fdf0cdd894004919800575b8235343ba8ef
 
 PKG_BUILD_DEPENDS:=python3
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
+include ../../lang/python/pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python3-package.mk
 
index 63aa47c3369184448fc84786afd786d111e37312..0813155172152b9c7829e459b428552e176ead26 100644 (file)
@@ -8,8 +8,7 @@ PKG_NAME:=Flask
 PKG_VERSION:=1.1.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/F/Flask
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=13f9f196f330c7c2c5d7a5cf91af894110ca0215ac051b5844701f2bfd934d52
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
@@ -17,6 +16,7 @@ PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 PKG_CPE_ID:=cpe:/a:palletsprojects:flask
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index e7f458da0aa18b8deed7f10e6a9ceea7ead78cf7..7322b1bc836468922d16c32194b8e4a61788889f 100644 (file)
@@ -8,8 +8,7 @@ PKG_NAME:=Jinja2
 PKG_VERSION:=2.10.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/J/Jinja2
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
@@ -17,6 +16,7 @@ PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:pocoo:jinja2
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 77cba24d0f4db515c4f31b5779a943a3365a3bf4..dde6dede320677a402656b8be58c738db2eb9d93 100644 (file)
@@ -8,16 +8,14 @@ PKG_NAME:=MarkupSafe
 PKG_VERSION:=1.1.1
 PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/M/MarkupSafe
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 6aa1622cadb49c76350e9acc4474ff6dfc51156a..deb3a51bd677ca5b6b3f540df408443a746cbdd6 100644 (file)
@@ -8,14 +8,14 @@ PKG_NAME:=Werkzeug
 PKG_VERSION:=0.16.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/W/Werkzeug
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index d8ba6d1161dab59be71e396f30908a0a21493e67..07bc084841a3b4e28383c95b3428d191aa411599 100644 (file)
@@ -9,10 +9,8 @@ PKG_NAME:=bcrypt
 PKG_VERSION:=3.1.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=bcrypt-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:= https://files.pythonhosted.org/packages/source/b/$(PKG_NAME)
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-bcrypt-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
 PKG_LICENSE:=Apache-2.0
@@ -22,12 +20,11 @@ PKG_BUILD_DEPENDS:=libffi/host
 HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/bcrypt/Default
   SECTION:=lang
   CATEGORY:=Languages
index c6c469178321f40cf7ec1efc79b1c4473aa055c4..4d237083bceaa728eca80a40668e84999eacadfa 100644 (file)
@@ -8,16 +8,15 @@ PKG_NAME:=click
 PKG_VERSION:=7.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Click-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/click
+PYPI_NAME:=$(PKG_NAME)
+PYPI_SOURCE_NAME:=Click
 PKG_HASH:=5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/Click-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 3af0870130e9f56a2407da18a50833652b23c0d0..89623a9ebb3796d4acd72c095ee5112eb19e85bd 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=django-appconf
 PKG_VERSION:=1.0.2
 PKG_RELEASE:=5
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=6a4d9aea683b4c224d97ab8ee11ad2d29a37072c0c6c509896dd9857466fb261
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 975f8d3d8200011be081228fd58ca9382bbaee43..6b40b2ea428dfe577b5f21d95c55e999ffa947a0 100644 (file)
@@ -11,22 +11,19 @@ PKG_NAME:=django-compressor
 PKG_VERSION:=2.2
 PKG_RELEASE:=6
 
-PKG_SOURCE:=django_compressor-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
+PYPI_SOURCE_NAME:=django_compressor
 PKG_HASH:=9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 50dcf2d72176c5461c6351e43101812135720938..fe159597f1637d7a0cadb1cb9e267eab7506fcb4 100644 (file)
@@ -11,21 +11,17 @@ PKG_NAME:=django-constance
 PKG_VERSION:=2.3.1
 PKG_RELEASE:=4
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-constance
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=a49735063b2c30015d2e52a90609ea9798da722ed070f091de51714758a5d018
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-constance-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-django-constance/Default
   SUBMENU:=Python
   SECTION:=lang
index e820d85743deb0dd2d3adf4f77d16b103e203a4f..863bfc964a8c750ce5d85b76c4cbcd1b4b6b0d21 100644 (file)
@@ -9,22 +9,18 @@ PKG_NAME:=django-formtools
 PKG_VERSION:=2.1
 PKG_RELEASE:=6
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
 
 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 77df0937599c8182043a088ed83ba0372c565cb0..42cdc6d0df4981607187e4fa0ba2f6950ffd13c0 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=django-jsonfield
 PKG_VERSION:=1.0.1
 PKG_RELEASE:=5
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=6c0afd5554739365b55d86e285cf966cc3a45682fff963463364ea1f6511ca3e
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 0c57ff269e3acfea658e1e976305a9081ffc0ebe..dff160f21eb94497af318fd26c788b66fbd01cc2 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=django-picklefield
 PKG_VERSION:=1.1.0
 PKG_RELEASE:=4
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=ce7fee5c6558fe5dc8924993d994ccde75bb75b91cd82787cbd4c92b95a69f9c
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 928f59bec9408ee5c35e4d7d354165674996eb2b..f75f509c339ff24bde75767f1a0d8ebc9d9b20bf 100644 (file)
@@ -11,22 +11,19 @@ PKG_NAME:=django-postoffice
 PKG_VERSION:=3.1.0
 PKG_RELEASE:=5
 
-PKG_SOURCE:=django-post_office-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-post_office
+PYPI_NAME:=django-post-office
+PYPI_SOURCE_NAME:=django-post_office
 PKG_HASH:=827937a944fe47cea393853069cd9315d080298c8ddb0faf787955d6aa51a030
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 2f0eeb5dfd1c99ce9f38fd931f874695a7c10fd6..363c0c36ad3321383ade920b7f4edb03889939c5 100644 (file)
@@ -9,22 +9,18 @@ PKG_NAME:=django-ranged-response
 PKG_VERSION:=0.2.0
 PKG_RELEASE:=6
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985
 
 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index c86fd418af05b176b495f09a50acd7064b663867..cb90f6a51dfad1cd8fca086f77ba17e74509fe20 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=django-restframework
 PKG_VERSION:=3.9.0
 PKG_RELEASE:=5
 
-PKG_SOURCE:=djangorestframework-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/djangorestframework
+PYPI_NAME:=djangorestframework
 PKG_HASH:=607865b0bb1598b153793892101d881466bd5a991de12bd6229abb18b1c86136
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.md
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index d59dfb30054a4556231995c65fdd9a4557d3a27b..de9fe61d673b5ef7bfc0d358ccae62fcd3e88b85 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=django-statici18n
 PKG_VERSION:=1.8.2
 PKG_RELEASE:=5
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-statici18n
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=ba9eeb3c4517027922645999359f8335fbb9fea04c457123cfbd6b4a36cbeda4
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 28c454be0ab42cc21bcb44ab07647663aef0fb67..dd41c48b52641172e9c9c792888c5d729f70879e 100644 (file)
@@ -9,22 +9,18 @@ PKG_NAME:=django-webpack-loader
 PKG_VERSION:=0.6.0
 PKG_RELEASE:=6
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/${PKG_NAME}
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=60bab6b9a037a5346fad12d2a70a6bc046afb33154cf75ed640b93d3ebd5f520
 
 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/$(PKG_NAME)/Default
   SUBMENU:=Python
   SECTION:=lang
index 263a92915434e2c33c2452144f04c4462593dc0c..ab26ee4ac050d5924b578097f0d8d560b02be7d3 100644 (file)
@@ -11,21 +11,18 @@ PKG_NAME:=django
 PKG_VERSION:=2.2.6
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django
+PYPI_NAME:=Django
 PKG_HASH:=a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE LICENSE.python
 PKG_CPE_ID:=cpe:/a:djangoproject:django
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/django/Default
   SUBMENU:=Python
   SECTION:=lang
index 098a1f9f9cc18fb2f206bce00ea6228b54c79ad7..3caa5c6a2f28b036010eb6faf54a350a91e92677 100644 (file)
@@ -11,21 +11,18 @@ PKG_NAME:=django1
 PKG_VERSION:=1.11.25
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django
+PYPI_NAME:=Django
 PKG_HASH:=5314e8586285d532b7aa5c6d763b0248d9a977a37efec86d30f0212b82e8ef66
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE LICENSE.python
 PKG_CPE_ID:=cpe:/a:djangoproject:django
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/django1/Default
   SUBMENU:=Python
   SECTION:=lang
index 77ed6aadf6787665fe1e3b82e03f1c0ff9bd0f13..504b082a3a3e103348c6bbddd3451d4f73fc9c85 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=flup
 PKG_VERSION:=1.0.3
 PKG_RELEASE:=3
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/f/flup
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=5eb09f26eb0751f8380d8ac43d1dfb20e1d42eca0fa45ea9289fa532a79cd159
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-flup-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=PKG-INFO
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/flup/Default
   SECTION:=lang
   CATEGORY:=Languages
index 4ba9f2195960c487d1a283c3e6000bf11b609ecf..0a6ca36250f09d106a8acdf577808e2ba9aedf80 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=gunicorn
 PKG_VERSION:=19.9.0
 PKG_RELEASE=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/g/gunicorn
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/gunicorn/Default
   SUBMENU:=Python
   SECTION:=lang
index de36ced6e1cb0ba55052fbc38791c86a60609c7a..81cd669e6c7130c30812ba0186ab65c9963fb07f 100644 (file)
@@ -8,14 +8,14 @@ PKG_NAME:=itsdangerous
 PKG_VERSION:=1.1.0
 PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/itsdangerous
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19
 
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index fa583e17790c596646e58d158993a65a3678a214..f0ea9326bf5a01f8adb1485d3d9a58983033da3b 100644 (file)
@@ -15,18 +15,14 @@ PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENCE.rst
 
-PKG_SOURCE:=openpyxl-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/openpyxl
+PYPI_NAME:=openpyxl
 PKG_HASH:=1d2af392cef8c8227bd2ac3ebe3a28b25aba74fd4fa473ce106065f0b73bfe2e
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-openpyxl-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-openpyxl/Default
   SUBMENU:=Python
   SECTION:=lang
index b8254fc5a9054ea86477aa54eea7a94760e0bf70..5a11e95cf0bd37f8fe45a0247f961a355c2a3eb5 100644 (file)
@@ -8,18 +8,15 @@ PKG_VERSION:=1.7.1
 PKG_RELEASE:=1
 PKG_LICENSE:=BSD-3-Clause
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/passlib
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=3d948f64138c25633613f303bcc471126eae67c04d5e3f6b7b8ce6242f8653e0
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-passlib-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/passlib/Default
   SUBMENU:=Python
   SECTION:=lang
index 91b63bf90c31f9701ea73812b103ddf55622c28f..e51fc016fac769c2d361d242bf82dea6899d4ad1 100644 (file)
@@ -10,22 +10,19 @@ PKG_NAME:=pillow
 PKG_VERSION:=6.2.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Pillow-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/Pillow
+PYPI_NAME:=Pillow
 PKG_HASH:=bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-Pillow-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=HPND
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:python:pillow
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pillow/Default
   SUBMENU:=Python
   SECTION:=lang
index f8af00d003daca805867347a9aa11add8cfeca45..b8000308bc684e05cb58514539a92f453b0ab524 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=PyJWT-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/PyJWT
+PYPI_NAME:=PyJWT
 PKG_HASH:=8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-PyJWT-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyjwt/Default
   SUBMENU:=Python
   SECTION:=lang
index d3f1f05500ba6a6a42c7ab71e678b33b42458259..fa70c8f6b97298e49f0e45f1766c57f03e22b68c 100644 (file)
@@ -8,19 +8,16 @@ PKG_NAME:=pyodbc
 PKG_VERSION:=4.0.26
 PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyodbc
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3
 PKG_BUILD_DEPENDS:=python python3 unixodbc
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PKG_BUILD_DEPENDS:=unixodbc/host
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
index 4f6e641ab4393ff648e498db6e507488177f4da1..b8c85f95fa7daf667e80689aa859ce259494e9c1 100644 (file)
@@ -11,14 +11,15 @@ PKG_NAME:=aiohttp-cors
 PKG_VERSION:=0.7.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=aiohttp-cors-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/aiohttp_cors/
+PYPI_NAME:=aiohttp_cors
+PYPI_SOURCE_NAME:=aiohttp-cors
 PKG_HASH:=4d39c6d7100fd9764ed1caf8cebf0eb01bf5e3f24e2e073fda6234bc48b19f5d
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index f1de0b55bb5bdb34e70079b2b75feeccda85595c..c2f7d1e86deeb5f3c8d35a1b3637fd35e539e0f1 100644 (file)
@@ -11,8 +11,7 @@ PKG_NAME:=aiohttp
 PKG_VERSION:=3.5.4
 PKG_RELEASE:=1
 
-PKG_SOURCE:=aiohttp-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/aiohttp/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
@@ -20,6 +19,7 @@ PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:aio-libs_project:aiohttp
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 79662e16c1df9fe021358902cece172875eeeca4..d876e8b15359bba88f6a82b46aec89dd1ed5e3e6 100644 (file)
@@ -9,12 +9,11 @@ PKG_VERSION:=1.4.3
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/a/appdirs/
-PKG_SOURCE:=appdirs-$(PKG_VERSION).tar.gz
+PYPI_NAME:=appdirs
 PKG_HASH:=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92
 PKG_LICENSE:=MIT
-PKG_BUILD_DIR:=$(BUILD_DIR)/appdirs-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 7243eb0025bb42b73f31e0c7fe6721fbe84f0c15..302eefc728b16627e1965479f382398d84f4bf10 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-astral
 PKG_VERSION:=1.10.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=astral-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/astral/
+PYPI_NAME:=astral
 PKG_HASH:=d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-astral-$(PKG_VERSION)
-
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-astral/Default
   SECTION:=lang
   CATEGORY:=Languages
index a8c76c124514615c872e22346be9865c6bdc2ad9..50a761c64347d9d7ae16646d4b0b508cdcc48c22 100644 (file)
@@ -11,14 +11,15 @@ PKG_NAME:=async-timeout
 PKG_VERSION:=3.0.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=async-timeout-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/async-timeout/
+PYPI_NAME:=async_timeout
+PYPI_SOURCE_NAME:=async-timeout
 PKG_HASH:=0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index d784a53f3eb6da251894a5d600194f173b89bd7c..5936704cb5f42c83196cb393df7f871ec3843740 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-attrs
 PKG_VERSION:=19.3.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=attrs-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/attrs
+PYPI_NAME:=attrs
 PKG_HASH:=f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-attrs-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-attrs/Default
   SECTION:=lang
   CATEGORY:=Languages
index 2161e0b78e3335f5735054137a5e66707dcc67af..d9265da49e63051abcd4817bd88a9eaaa6d976a8 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-automat
 PKG_VERSION:=0.8.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Automat-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/A/Automat
+PYPI_NAME:=Automat
 PKG_HASH:=269a09dfb063a3b078983f4976d83f0a0d3e6e7aaf8e27d8df1095e09dc4a484
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-automat-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_VARS:= \
   PKG_VERSION="$(PKG_VERSION)"
 PYTHON3_PKG_SETUP_VARS:= \
index c290c6ac4700e938b1d3da9b88cd7659f28867b0..164ed090d77f42aa4c23f042db78540f14712fd3 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=awscli
 PKG_VERSION:=1.16.75
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/awscli
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=8d96ec0de325ea8271cc6aa95b7392bbf548ec4aabd3ffbcdc0619b64edd4a45
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-awscli-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-awscli/Default
   SUBMENU:=Python
   SECTION:=lang
index 160cf40f2b7bb4df283c646c86f90088ded1e92a..4f43b4e1ca92e0549cca171b954a0e29d9b0a5d8 100644 (file)
@@ -4,15 +4,14 @@ PKG_NAME:=boto3
 PKG_VERSION:=1.9.135
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/b/boto3
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=5e5805992e873e5687b5ef3b4c56c386ccb4df1c3364f8b8601d289e2f275be1
-PKG_BUILD_DIR:=$(BUILD_DIR)/boto3-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index e02c6d61f59613aab4751fd6f8286e138cb2892c..d230176b93a05f0ae064a2857a8fdd4c2d6abd59 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=botocore
 PKG_VERSION:=1.12.66
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/b/botocore
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=25c39ecc71356287cf79d66981ec77deca374e28043b19b2f818d48aa34272a1
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-botocore-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-botocore/Default
   SUBMENU:=Python
   SECTION:=lang
index 3f59aca1b0ff78e826d9568c2b771f6513e8ddd2..52b6d93cc720500d99ef996640d3b1125267b14b 100644 (file)
@@ -8,15 +8,14 @@ PKG_NAME:=python-cachelib
 PKG_VERSION:=0.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=cachelib-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/cachelib
+PYPI_NAME:=cachelib
 PKG_HASH:=8b889b509d372095357b8705966e1282d40835c4126d7c2b07fd414514d8ae8d
-PKG_BUILD_DIR:=$(BUILD_DIR)/cachelib-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Stepan Henek <stepan.henek@nic.cz>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index e2bb3966a017896bc62fe925b5caa314ed33b74c..6b7ae4096301c8d03a074c3306fdb70661fc58ff 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=python-cachetools
 PKG_VERSION:=3.1.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=cachetools-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/cachetools/
+PYPI_NAME:=cachetools
 PKG_HASH:=8ea2d3ce97850f31e4a08b0e2b5e6c34997d7216a9d2c98e0f3978630d4da69a
-PKG_BUILD_DIR:=$(BUILD_DIR)/cachetools-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index acece86bb76f7b72fd017a47c36fd73abb5fd8ab..2f4c9823741297a0c100c81261b92602383f882b 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
 PKG_LICENSE:=MPL-2.0
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=certifi-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/certifi
+PYPI_NAME:=certifi
 PKG_HASH:=e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-certifi-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-certifi/Default
   SUBMENU:=Python
   SECTION:=lang
index 11d436e7f643f945c4a2b68782d4fdefd52804dd..b20c3fd3c165570a3d168eab10ed03228aa02d02 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-cffi
 PKG_VERSION:=1.13.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=cffi-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/cffi
+PYPI_NAME:=cffi
 PKG_HASH:=558b3afef987cf4b17abd849e7bedf64ee12b28175d564d05b628a0f9355599b
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cffi-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-cffi/Default
   SECTION:=lang
   CATEGORY:=Languages
index 35a1812522f5dbc90d66740fe8d93b320e60c0a3..8f2da9e423ca5a9dc79dd513aa8b914df4dc9af2 100644 (file)
@@ -12,17 +12,14 @@ PKG_VERSION:=3.0.4
 PKG_RELEASE:=2
 PKG_LICENSE:=LGPL-2.1
 
-PKG_SOURCE:=chardet-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://pypi.python.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/
+PYPI_NAME:=chardet
 PKG_HASH:=84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-chardet-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-chardet/Default
   SUBMENU:=Python
   SECTION:=lang
index c5b8c67f54a1a0ba6b782e1fb4a4db071fbfa083..61c862dee36e148c7ced9e2391d53174e20b19bd 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=colorama
 PKG_VERSION:=0.4.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/colorama
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-colorama-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-colorama/Default
   SUBMENU:=Python
   SECTION:=lang
index db502e2ebccbc8a9ddbccf6756a620e097018852..e26705f4f2c5ec360bd2cbbc33b1a6b2fa824eea 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-constantly
 PKG_VERSION:=15.1.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=constantly-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/constantly
+PYPI_NAME:=constantly
 PKG_HASH:=586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-constantly-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-constantly/Default
   SECTION:=lang
   CATEGORY:=Languages
index c1c0ba9e97ffe42f53b78c6fcbe75d26fb92dcc8..04c256cedf497bb9b0dd1a393e380b912770909c 100644 (file)
@@ -9,11 +9,10 @@ PKG_VERSION:=0.5.5
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/c/contextlib2/
-PKG_SOURCE:=contextlib2-$(PKG_VERSION).tar.gz
+PYPI_NAME:=contextlib2
 PKG_HASH:=509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48
-PKG_BUILD_DIR:=$(BUILD_DIR)/contextlib2-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index a4873ccad66a54c9fcb41b58f8fa389de5ab593e..818fa72eaf7fd236c77e8916f9a07ca92d6efd10 100644 (file)
@@ -13,13 +13,12 @@ PKG_RELEASE:=1
 PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
 PKG_LICENSE:=MIT
 
-PKG_SOURCE:=crcmod-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://pypi.python.org/packages/source/c/crcmod/
+PYPI_NAME:=crcmod
 PKG_HASH:=dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/crcmod-$(PKG_VERSION)
 PKG_BUILD_DEPENDS:=python
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
index f0f8d659872c9eae350a6cba107bd0563261136d..94eb78a45e62455f551ef189c4bee7234733a615 100644 (file)
@@ -11,23 +11,19 @@ PKG_NAME:=python-crypto
 PKG_VERSION:=2.6.1
 PKG_RELEASE:=4
 
-PKG_SOURCE:=pycrypto-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycrypto
+PYPI_NAME:=pycrypto
 PKG_HASH:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-crypto-$(PKG_VERSION)
-
 PKG_LICENSE:=Public Domain
 PKG_LICENSE_FILES:=COPYRIGHT
 PKG_CPE_ID:=cpe:/a:dlitz:pycrypto
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_ARGS:=
 PYTHON_PKG_SETUP_VARS:= \
   CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
index 24705b61b6842e5e74fdc1c7e294eefa5822bc91..f6d1e88a946be0a9edbac8e5be8e309544691b3d 100644 (file)
@@ -8,23 +8,19 @@ PKG_NAME:=python-cryptodome
 PKG_VERSION:=3.9.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pycryptodome-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycryptodome
+PYPI_NAME:=pycryptodome
 PKG_HASH:=dbeb08ad850056747aa7d5f33273b7ce0b9a77910604a1be7b7a6f2ef076213f
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptodome-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
 PKG_CPE_ID:=cpe:/a:pycryptodome:pycryptodome
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_ARGS:=
 PYTHON_PKG_SETUP_VARS:= \
   CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
index ed6ea64bade7ced22cce00122c341dad5e68a672..10c68e7d278ad6ee2fbb40be6cd789db5c100285 100644 (file)
@@ -8,22 +8,18 @@ PKG_NAME:=python-cryptodomex
 PKG_VERSION:=3.9.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pycryptodomex-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycryptodomex
+PYPI_NAME:=pycryptodomex
 PKG_HASH:=8b604f4fa1de456d6d19771b01c2823675a75a2c60e51a6b738f71fdfe865370
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptodomex-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_ARGS:=
 PYTHON_PKG_SETUP_VARS:= \
   CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
index d3b6d709fd227e9c8172da9b3023c13f80d26e12..d7981d37df4f29c3cd041a16d3e73b3cbcc74d25 100644 (file)
@@ -11,26 +11,23 @@ PKG_NAME:=python-cryptography
 PKG_VERSION:=2.8
 PKG_RELEASE:=1
 
-PKG_SOURCE:=cryptography-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/cryptography
+PYPI_NAME:=cryptography
 PKG_HASH:=3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651
 
 PKG_LICENSE:=Apache-2.0 BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptography-$(PKG_VERSION)
 PKG_BUILD_DEPENDS:=libffi/host
 
 HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="cffi>=1.8,!=1.11.3"
 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.8,!=1.11.3"
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-cryptography/Default
   SECTION:=lang
   CATEGORY:=Languages
index c6aba22c69f74169d772ffe0d89a3de5cd873a68..69068596705369f494ff0433b803e94040f8bd84 100644 (file)
@@ -8,22 +8,18 @@ PKG_NAME:=pycurl
 PKG_VERSION:=7.43.0.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pycurl-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycurl
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e
 
 PKG_MAINTAINER:=Waldemar Konik <informatyk74@interia.pl>
 PKG_LICENSE:=LGPL-2.1
 PKG_LICENSE_FILES:=COPYING-LGPL
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-curl-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-curl/Default
   CATEGORY:=Languages
   SECTION:=lang
index c90291c8737eef82397b3754814509e55fecef6f..ac6cc4efc65d01df4219ad0b70a2fb675083752f 100644 (file)
@@ -12,19 +12,16 @@ PKG_VERSION:=2.8.0
 PKG_RELEASE:=1
 PKG_LICENSE:=BSD-2-Clause
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/python-dateutil
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-dateutil-$(PKG_VERSION)
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-dateutil/Default
   SUBMENU:=Python
   SECTION:=lang
index b5971ad8e618bd2eed64771beb291b739e6b8999..2057e0fa255a39b172880293f943bf13442736a7 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
 PKG_LICENSE:=Python-2.0
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=defusedxml-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/defusedxml
+PYPI_NAME:=defusedxml
 PKG_HASH:=f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-defusedxml-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-defusedxml/Default
   SUBMENU:=Python
   SECTION:=lang
index 23500a57a7bfb2da6fc6ebfe63a1ba6f1c21c5cd..060ef552c8d0cfe0984cb4a0c463ae2174ce488f 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=docutils
 PKG_VERSION:=0.14
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/docutils
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-docutils-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-docutils/Default
   SUBMENU:=Python
   SECTION:=lang
index f9f2018474df922bab55fd808ed6a285039edf62..1ca49080326cb91a9ddcd41a647a8c3d630a20c3 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=python-dpkt
 PKG_VERSION:=1.9.2
 PKG_RELEASE:=1
 
-PKG_SOURCE:=dpkt-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/dpkt
+PYPI_NAME:=dpkt
 PKG_HASH:=52a92ecd5ca04d5bd852bb11cb2eac4bbe38b42a7c472e0d950eeb9f82a81e54
-PKG_BUILD_DIR:=$(BUILD_DIR)/dpkt-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
index 8f4cd71caf748834dae92a274e6e6b0f6fbd7585..03af234b0853b8aa5a761b258b7b6ef04fae40eb 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-enum34
 PKG_VERSION:=1.1.6
 PKG_RELEASE:=4
 
-PKG_SOURCE:=enum34-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/e/enum34
+PYPI_NAME:=enum34
 PKG_HASH:=8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-enum34-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=enum/LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 PKG_CPE_ID:=cpe:/a:python:enum34
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-enum34/Default
   SECTION:=lang
   CATEGORY:=Languages
index d9af063c24d684023eafea194a867d1ba2ebf216..426337d6d494696bf9534f7835084e5b56c9a3ab 100644 (file)
@@ -12,18 +12,14 @@ PKG_RELEASE:=1
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
 PKG_LICENSE:=MIT
 
-PKG_SOURCE:=et_xmlfile-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/e/et_xmlfile
+PYPI_NAME:=et_xmlfile
 PKG_HASH:=614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-et_xmlfile-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-et_xmlfile/Default
   SUBMENU:=Python
   SECTION:=lang
index d72dd22a7637fdf6ba841b918e978bd2dd48ab2e..40dbb3996f4bce802107d3f183d40081be68ca2e 100644 (file)
@@ -15,18 +15,14 @@ PKG_RELEASE:=1
 PKG_LICENSE:=BSD-3-Clause
 PKG_MAINTAINER:=Paulo Costa <me@paulo.costa.nom.br>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
-PKG_SOURCE:=evdev-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/e/evdev
+PYPI_NAME:=evdev
 PKG_HASH:=b03f5e1be5b4a5327494a981b831d251a142b09e8778eda1a8b53eba91100166
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-evdev-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-evdev/Default
   SUBMENU:=Python
   SECTION:=lang
index b8b19f5d40dd2af9707644c3f3cea6ec7bee5b96..ba56053aabd46924b75994d3a5e956f4f0d607c1 100644 (file)
@@ -4,19 +4,16 @@ PKG_NAME:=futures
 PKG_VERSION:=3.2.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/f/futures
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=9ec02aa7d674acb8618afb127e27fde7fc68994c0437ad759fa094a574adb265
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-futures-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-futures
   SUBMENU:=Python
   SECTION:=lang
index 4d730f87a40669597d81e514fe366e5828e30af7..81f602c7c776f91cd2902b46240ded95fab6a358 100644 (file)
@@ -11,22 +11,19 @@ PKG_NAME:=python-gmpy2
 PKG_VERSION:=2.0.8
 PKG_RELEASE:=4
 
-PKG_SOURCE:=gmpy2-$(PKG_VERSION).zip
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/g/gmpy2
+PYPI_NAME:=gmpy2
+PYPI_SOURCE_EXT:=zip
 PKG_HASH:=dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-gmpy2-$(PKG_VERSION)
-
 PKG_LICENSE:=LGPL-3.0-or-later
 PKG_LICENSE_FILES:=COPYING.LESSER
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE); mv -f $(PKG_BUILD_DIR)/gmpy2-$(PKG_VERSION)/* $(PKG_BUILD_DIR)
-
 PYTHON_PKG_SETUP_ARGS:=--nompfr
 PYTHON3_PKG_SETUP_ARGS:=--nompfr
 
index 8511b394eae6143135907c798a56f6463d68d46e..54a827e95b575c86788eb50e7e36593afd89a504 100644 (file)
@@ -8,8 +8,7 @@ PKG_NAME:=python-gnupg
 PKG_VERSION:=0.4.4
 PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/python-gnupg
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e
 
 PKG_LICENSE:=GPL-3.0-or-later
@@ -17,9 +16,7 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_CPE_ID:=cpe:/a:python-gnupg_project:python-gnupg
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
-PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
index fafe5b0f2e6620726761ca19d82617d674631815..869fc5a9b5148bfd2e4d9103ddb634ed8936c98a 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-hyperlink
 PKG_VERSION:=19.0.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=hyperlink-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/h/hyperlink
+PYPI_NAME:=hyperlink
 PKG_HASH:=4288e34705da077fada1111a24a0aa08bb1e76699c9ce49876af722441845654
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-hyperlink-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-hyperlink/Default
   SECTION:=lang
   CATEGORY:=Languages
index d54b91d2db4ca2613f5e063864f2c0a94cdc3fe1..d70ae39075b62c7f3bd209abf5be06963224e020 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-idna
 PKG_VERSION:=2.8
 PKG_RELEASE:=2
 
-PKG_SOURCE:=idna-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/idna
+PYPI_NAME:=idna
 PKG_HASH:=c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-idna-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.rst
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-idna/Default
   SECTION:=lang
   CATEGORY:=Languages
index 14fb960b926a3cc30e41436bf0fda73bdc962b4e..9c65f691757e70b2ee80cebc1a9e99fd067c24b1 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python-ifaddr
 PKG_VERSION:=0.1.6
 PKG_RELEASE:=1
 
-PKG_SOURCE:=ifaddr-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/ifaddr/
+PYPI_NAME:=ifaddr
 PKG_HASH:=c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/ifaddr-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index db0ce103adfac672f1506ccec1733a0b8d08c9a9..65cc4f7127d357dcf11d5283ec03345394a18c0c 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-incremental
 PKG_VERSION:=17.5.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=incremental-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/incremental
+PYPI_NAME:=incremental
 PKG_HASH:=7b751696aaf36eebfab537e458929e194460051ccad279c72b755a167eebd4b3
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-incremental-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-incremental/Default
   SECTION:=lang
   CATEGORY:=Languages
index 221db928f35d97f290ba5379aec6c226a628df6b..3f7d5f5a21572fc1f5412866db0c5ab8e3f8cd50 100644 (file)
@@ -9,12 +9,11 @@ PKG_VERSION:=5.2.2
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/i/influxdb/
-PKG_SOURCE:=influxdb-$(PKG_VERSION).tar.gz
+PYPI_NAME:=influxdb
 PKG_HASH:=afeff28953a91b4ea1aebf9b5b8258a4488d0e49e2471db15ea43fd2c8533143
 PKG_LICENSE:=MIT
-PKG_BUILD_DIR:=$(BUILD_DIR)/influxdb-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 4f9619bc1269432e77e8114c28112b8a01a9c496..bccb044f8ae4ec6657e3179f7549f7cf4d60f3f0 100644 (file)
@@ -8,15 +8,15 @@ PKG_NAME:=python-intelhex
 PKG_VERSION:=2.2.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=intelhex-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/intelhex/
+PYPI_NAME:=IntelHex
+PYPI_SOURCE_NAME:=intelhex
 PKG_HASH:=009d8511e0d50639230c39af9607deee771cf026f67ef7507a8c3fd4fa927832
-PKG_BUILD_DIR:=$(BUILD_DIR)/intelhex-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.txt
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index d78a35bc6d3e1ccda275ecfab7303d89c6f8a664..664076bed9c774987bfbf396d4724e9717fa9a22 100644 (file)
@@ -11,20 +11,16 @@ PKG_NAME:=python-ipaddress
 PKG_VERSION:=1.0.23
 PKG_RELEASE:=1
 
-PKG_SOURCE:=ipaddress-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/ipaddress
+PYPI_NAME:=ipaddress
 PKG_HASH:=b7f8e0369580bb4a24d5ba1d7cc29660a4a6987763faf1d8a8046830e020e7e2
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-ipaddress-$(PKG_VERSION)
-
 PKG_LICENSE:=Python-2.0
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-ipaddress/Default
   SECTION:=lang
   CATEGORY:=Languages
index e43c70aaa44cab6b9a6ee81875525b8c69d40aef..b674c82276078df3de90d80c34471d2d1ebbc10b 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE.txt
 
-PKG_SOURCE:=jdcal-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/j/jdcal
+PYPI_NAME:=jdcal
 PKG_HASH:=472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-jdcal-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-jdcal/Default
   SUBMENU:=Python
   SECTION:=lang
index ce11ca7b2337824dbc6f60d921b80689f5f17deb..e4d1494fb9d56018c402de1f45065c2b40804285 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=jmespath
 PKG_VERSION:=0.9.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/j/jmespath
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=6a81d4c9aa62caf061cb517b4d9ad1dd300374cd4706997aff9cd6aedd61fc64
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-jmespath-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-jmespath/Default
   SUBMENU:=Python
   SECTION:=lang
index 468fce3a8c1f849be4cdc69e2578e485ef7a9f66..7059c27c9670ab7afefeabb2ca483ac2aa5b85d4 100644 (file)
@@ -9,11 +9,10 @@ PKG_VERSION:=1.4.3
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
 
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/j/jsonpath-ng/
-PKG_SOURCE:=jsonpath-ng-$(PKG_VERSION).tar.gz
+PYPI_NAME:=jsonpath-ng
 PKG_HASH:=b1fc75b877e9b2f46845a455fbdcfb0f0d9c727c45c19a745d02db620a9ef0be
-PKG_BUILD_DIR:=$(BUILD_DIR)/jsonpath-ng-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 958c82cf752641abd64371d444ac86e1281b0af8..780802858c687ee22c5852471e54442009ccf490 100644 (file)
@@ -14,10 +14,10 @@ PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
 PKG_LICENSE:=Python-style
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/python-ldap
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=41975e79406502c092732c57ef0c2c2eb318d91e8e765f81f5d4ab6c1db727c5
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
index ac95a1cefa773a85706ca17b1c4b0f4e2f8923ce..97e962882256be4da4ece80b762e9b0af12f86a2 100644 (file)
@@ -11,18 +11,15 @@ PKG_NAME:=python-lxml
 PKG_VERSION:=4.4.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=lxml-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/l/lxml
+PYPI_NAME:=lxml
 PKG_HASH:=c81cb40bff373ab7a7446d6bbca0190bccc5be3448b47b51d729e37799bb5692
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-lxml-$(PKG_VERSION)
-PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PKG_LICENSE:=BSD
 PKG_LICENSE_FILES:=LICENSES.txt
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_CPE_ID:=cpe:/a:lxml:lxml
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
index 06baa3a28191029b327dd64c8b1a6ec643e6c9f6..34ae3863ac5fcc8789631f22bc0311be7a6cae8c 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python-markdown
 PKG_VERSION:=3.1.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Markdown-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/markdown/
+PYPI_NAME:=Markdown
 PKG_HASH:=2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/Markdown-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE.md
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 971c382d2b2fb9a0db7bacf8ba9f24328878cba4..fee8560113c35b7e95ded559d94d64a78e94e354 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=multidict
 PKG_VERSION:=4.5.2
 PKG_RELEASE:=1
 
-PKG_SOURCE:=multidict-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/multidict/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=024b8129695a952ebd93373e45b5d341dbb87c17ce49637b34000093f243dd4f
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 626c6964d35559b2f3b3f64f509fac2c8d5512f5..a60a90e8d70c5f8e26cc7f82fb89dca27fd0cb02 100644 (file)
@@ -12,20 +12,17 @@ PKG_VERSION:=1.4.4
 PKG_RELEASE:=1
 PKG_LICENSE:=GPL-2.0
 
-PKG_SOURCE:=mysqlclient-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/mysqlclient
+PYPI_NAME:=mysqlclient
 PKG_HASH:=9c737cc55a5dc8dd3583a942d5a9b21be58d16f00f5fefca4e575e7d9682e98c
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-mysqlclient-$(PKG_VERSION)
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 # python-mysqlclient needs iconv
 include $(INCLUDE_DIR)/nls.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-mysqlclient/Default
   SUBMENU:=Python
   SECTION:=lang
index fdcee517a0329c9b66819e7c26bd0273f624babe..9c5ae54d2e8003d8319112c3ba3977501228f64b 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python-netdisco
 PKG_VERSION:=2.6.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=netdisco-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/n/netdisco
+PYPI_NAME:=netdisco
 PKG_HASH:=2b3aca14a1807712a053f11fd80dc251dd821ee4899aefece515287981817762
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/netdisco-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE.md
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 6376cdf5acca1abbef130a7f71b2d1624ca3e45f..ae157406f5f822d87db788c163965877b0aa59d7 100644 (file)
@@ -13,17 +13,14 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=oauthlib-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/oauthlib
+PYPI_NAME:=oauthlib
 PKG_HASH:=bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-oauthlib-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-oauthlib/Default
   SUBMENU:=Python
   SECTION:=lang
index 1988f9b15f6995b13af34af37fa4514b5294cce4..c81dbc1cc7c69cf3039c35aaf16a627586cc8aaf 100644 (file)
@@ -10,11 +10,10 @@ PKG_RELEASE:=1
 PKG_LICENSE:=Eclipse Public License v1.0 / Eclipse Distribution License v1.0
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
-PKG_SOURCE:=paho-mqtt-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/25/63/db25e62979c2a716a74950c9ed658dce431b5cb01fde29eb6cba9489a904
+PYPI_NAME:=paho-mqtt
 PKG_HASH:=e440a052b46d222e184be3be38676378722072fcd4dfd2c8f509fb861a7b0b79
-PKG_BUILD_DIR:=$(BUILD_DIR)/paho-mqtt-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 83df113856ef8020138702fbe0ba26b905aeed73..39fed358ce42dc06196187ae26c87e0d9bda120e 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-parsley
 PKG_VERSION:=1.3
 PKG_RELEASE:=4
 
-PKG_SOURCE:=Parsley-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/Parsley
+PYPI_NAME:=Parsley
 PKG_HASH:=9444278d47161d5f2be76a767809a3cbe6db4db822f46a4fd7481d4057208d41
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-parsley-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_ARGS:=
 PYTHON3_PKG_SETUP_ARGS:=
 
index 24c2f7c1f0defa1779d9678a547037d4136821eb..5389146e678633d1e658a2d6c7bc61ecefaca951 100644 (file)
@@ -11,14 +11,13 @@ PKG_NAME:=python-pcapy
 PKG_VERSION:=0.11.4
 PKG_RELEASE:=2
 
-PKG_SOURCE:=pcapy-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pcapy
+PYPI_NAME:=pcapy
 PKG_HASH:=aa239913678d7ba116e66057a37f914de7726aecd11d00db470127df115c4e78
-PKG_BUILD_DIR:=$(BUILD_DIR)/pcapy-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
 PKG_LICENSE:=Apache-1.1
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
index a728e15c8bf73b6ec893c76ed47523a27e5160fc..ea6457d7786f9c2af018ad00656311b8e7329cbb 100644 (file)
@@ -11,23 +11,18 @@ PKG_NAME:=python-ply
 PKG_VERSION:=3.11
 PKG_RELEASE:=1
 
-PKG_SOURCE:=ply-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://www.dabeaz.com/ply \
-                https://files.pythonhosted.org/packages/source/p/ply
+PYPI_NAME:=ply
 PKG_HASH:=00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-ply-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=README.md
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-ply/Default
   SECTION:=lang
   CATEGORY:=Languages
index 1aa02469078789484469dc82171b235f7ac705da..b67d29efd8cd7b8c0714ab028dcbf71e3a223e54 100644 (file)
@@ -11,10 +11,8 @@ PKG_NAME:=python-psycopg2
 PKG_VERSION:=2.7.6.1
 PKG_RELEASE:=2
 
-PKG_SOURCE:=psycopg2-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/psycopg2
+PYPI_NAME:=psycopg2
 PKG_HASH:=27959abe64ca1fc6d8cd11a71a1f421d8287831a3262bd4cacd43bbf43cc3c82
-PKG_BUILD_DIR:=$(BUILD_DIR)/psycopg2-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
 PKG_LICENSE:=LGPL-3.0-or-later
@@ -22,6 +20,7 @@ PKG_LICENSE_FILES:=LICENSE
 
 PKG_BUILD_DEPENDS:=python/host
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
index 967199484cf89b1edc0f98a65eac873a98eb9ba5..bf48d362256a89a3967fb7fe7bb3ca65b2e9cfd2 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-pyasn1-modules
 PKG_VERSION:=0.2.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyasn1-modules-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyasn1-modules
+PYPI_NAME:=pyasn1-modules
 PKG_HASH:=0c35a52e00b672f832e5846826f1fb7507907f7d52fba6faa9e3c4cbe874fe4b
 
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyasn1-modules-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyasn1-modules/Default
   SECTION:=lang
   CATEGORY:=Languages
index 6222d929a8642967dca4611ebd9118af1d8a4bda..a6b0a1c407a4709b36d07421043cf897992840f8 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-pyasn1
 PKG_VERSION:=0.4.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyasn1-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyasn1
+PYPI_NAME:=pyasn1
 PKG_HASH:=a9495356ca1d66ed197a0f72b41eb1823cf7ea8b5bd07191673e8147aecf8604
 
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyasn1-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyasn1/Default
   SECTION:=lang
   CATEGORY:=Languages
index 77932a04c6ff22a572c63b1aac3f084b6771dc4c..6098f90b413165b1bef56ccc42637c45d06976c3 100644 (file)
@@ -11,12 +11,9 @@ PKG_NAME:=python-pycparser
 PKG_VERSION:=2.19
 PKG_RELEASE:=2
 
-PKG_SOURCE:=pycparser-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycparser
+PYPI_NAME:=pycparser
 PKG_HASH:=a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pycparser-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
@@ -24,12 +21,11 @@ PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="ply==3.10"
 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="ply==3.10"
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pycparser/Default
   SECTION:=lang
   CATEGORY:=Languages
index 5bfc8cc8aa1b8224e88bd270ee9291f374b98c00..5aad8ea23daca643b7b9a2a19febe429dd848317 100644 (file)
@@ -11,8 +11,7 @@ PKG_NAME:=python-pyopenssl
 PKG_VERSION:=19.0.0
 PKG_RELEASE:=2
 
-PKG_SOURCE:=pyOpenSSL-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyOpenSSL
+PYPI_NAME:=pyOpenSSL
 PKG_HASH:=aeca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f200
 
 PKG_LICENSE:=Apache-2.0
@@ -20,14 +19,11 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_CPE_ID:=cpe:/a:pyopenssl_project:pyopenssl
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyopenssl-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyopenssl/Default
   SECTION:=lang
   CATEGORY:=Languages
index b41ce93cdd4b13c20a8656f49d9df675af0d373f..4eb1c7a2525b9137a2f2abc8d75d11c34fb886ed 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=pyotp
 PKG_VERSION:=2.2.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyotp-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyotp
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=be0ffeabddaa5ee53e7204e7740da842d070cf69168247a3d0c08541b84de602
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index d2e7f574a4c719977ac6303063b2875c52e856c9..9c0403ab380966cdae0488ad4ac576b4ae40478a 100644 (file)
@@ -11,21 +11,17 @@ PKG_NAME:=python-pyptlib
 PKG_VERSION:=0.0.6
 PKG_RELEASE:=3
 
-PKG_SOURCE:=pyptlib-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyptlib
+PYPI_NAME:=pyptlib
 PKG_HASH:=b98472e3d9e8f4689d3913ca8f89afa5e6cc5383dcd8686987606166f9dac607
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyptlib-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyptlib/Default
   SECTION:=lang
   CATEGORY:=Languages
index 270276c2716393d45e46722cc76a26fe365e018d..9121a7fe055af11bf52cd5f2e3a5ccdc0b21773c 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=python-pyrsistent
 PKG_VERSION:=0.15.4
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyrsistent-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyrsistent/
+PYPI_NAME:=pyrsistent
 PKG_HASH:=34b47fa169d6006b32e99d4b3c4031f155e6e68ebcc107d6454852e8e0ee6533
-PKG_BUILD_DIR:=$(BUILD_DIR)/pyrsistent-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.mit
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 8a25c11539846bc124ece56545344b3200cd3ab3..ca80e6c485651a19e5a2512f27e2b3bb3cdf4f69 100644 (file)
@@ -11,21 +11,17 @@ PKG_NAME:=python-pyserial
 PKG_VERSION:=3.4
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://pypi.python.org/packages/cc/74/11b04703ec416717b247d789103277269d567db575d2fd88f25d9767fe3d/
+PYPI_NAME:=pyserial
 PKG_HASH:=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyserial-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD
 PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pyserial/Default
   SECTION:=lang-python
   CATEGORY:=Languages
index 82dea2909fa15cc6e90205807f08758cc7d081d4..bdff0ac509feed6640d37de1ba4ec81b0eebf974 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-pytz
 PKG_VERSION:=2019.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pytz-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pytz
+PYPI_NAME:=pytz
 PKG_HASH:=b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pytz-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-pytz/Default
   SUBMENU:=Python
   SECTION:=lang
index b67fdf62761c4ed1e0d8a2e7abd8e6672671fb4e..63c08db39990e0e9aa7806a18417fdc85aefa83c 100644 (file)
@@ -9,22 +9,18 @@ PKG_NAME:=python-qrcode
 PKG_VERSION:=6.1
 PKG_RELEASE:=2
 
-PKG_SOURCE:=qrcode-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/q/qrcode/
+PYPI_NAME:=qrcode
 PKG_HASH:=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
 
 PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-qrcode-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-qrcode/Default
   SECTION:=lang
   CATEGORY:=Languages
index f1e4477fa007fd5db9f7577ca1f82c6c2d4db8a7..2a812920fa3420cc2b6d31a0a65b3a095c57dd62 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=rcssmin-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/rcssmin
+PYPI_NAME:=rcssmin
 PKG_HASH:=ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-rcssmin-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-rcssmin/Default
     SUBMENU:=Python
     SECTION:=lang
index a12ff2e39cc2e9a76dacbe824c86f09b8213b17b..fdb0dbd27d43bf0d78cfa213a68c5f81e8cf2b26 100644 (file)
@@ -13,18 +13,14 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
 PKG_LICENSE:=ISC
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_SOURCE:=requests-oauthlib-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/requests-oauthlib
+PYPI_NAME:=requests-oauthlib
 PKG_HASH:=bd6533330e8748e94bf0b214775fed487d309b8b8fe823dc45641ebcd9a32f57
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-requests-oauthlib-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-requests-oauthlib/Default
   SUBMENU:=Python
   SECTION:=lang
index a34fd162f42b89ac30b8b4f7f77f40b34a6ea4d3..d233b69d5e873972643c4b340278183b725e88eb 100644 (file)
@@ -16,18 +16,14 @@ PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:python-requests:requests
 
-PKG_SOURCE:=requests-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/requests
+PYPI_NAME:=requests
 PKG_HASH:=11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-requests-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-requests/Default
   SUBMENU:=Python
   SECTION:=lang
index 5bd94fc7bce855bfc11a970d8236ec78bc38c05d..9bdca772ab5fc91da3e551aafa90e6a8de79f99a 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=rsa
 PKG_VERSION:=4.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/rsa
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-rsa-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-rsa/Default
   SUBMENU:=Python
   SECTION:=lang
index 255b5b678f79e682dcc98cf5aa9ded68f39e5989..5ed85e9d83b1111dfa1f7e5cd44bdd2ad8f28e3d 100644 (file)
@@ -4,20 +4,17 @@ PKG_NAME:=s3transfer
 PKG_VERSION:=0.2.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/s3transfer
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=f23d5cb7d862b104401d9021fc82e5fa0e0cf57b7660a1331425aab0c691d021
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-s3transfer-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-s3transfer/Default
   SECTION:=lang
   CATEGORY:=Languages
index 5bfe88f57c6fbb9af79381d6be6833d9ec479ceb..c7e4b6eea13e9f2472ecc733e074ff871bcef75a 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=python-schedule
 PKG_VERSION:=0.6.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=schedule-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/schedule/
+PYPI_NAME:=schedule
 PKG_HASH:=f9fb5181283de4db6e701d476dd01b6a3dd81c38462a54991ddbb9d26db857c9
-PKG_BUILD_DIR:=$(BUILD_DIR)/schedule-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 311d95a66e515c2088d4c60028954623fe2acf54..819ae3429d71e5ccb4f5e809161de8e5c9283208 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=python-sentry-sdk
 PKG_VERSION:=0.12.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=sentry-sdk-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/sentry-sdk/
+PYPI_NAME:=sentry-sdk
 PKG_HASH:=15e51e74b924180c98bcd636cb4634945b0a99a124d50b433c3a9dc6a582e8db
-PKG_BUILD_DIR:=$(BUILD_DIR)/sentry-sdk-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 4015827c119089612b5216bd9df083641473ec4f..dc99d4b793f34f24bc38b343296d5f42c7c411dc 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-service-identity
 PKG_VERSION:=18.1.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=service_identity-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/service_identity
+PYPI_NAME:=service_identity
 PKG_HASH:=0858a54aabc5b459d1aafa8a518ed2081a285087f349fe3e55197989232e2e2d
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-service-identity-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-service-identity/Default
   SECTION:=lang
   CATEGORY:=Languages
index 6b2d454326372d231a3d9bce7431eadc73346654..06c0d135f4c62875dfd397947a00150efcec998b 100644 (file)
@@ -13,17 +13,14 @@ PKG_RELEASE:=3
 PKG_LICENSE:=MIT
 PKG_CPE_ID:=cpe:/a:simplejson_project:simplejson
 
-PKG_SOURCE:=simplejson-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/simplejson
+PYPI_NAME:=simplejson
 PKG_HASH:=b1f329139ba647a9548aa05fb95d046b4a677643070dc2afc05fa2e975d09ca5
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-simplejson-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-simplejson/Default
   SUBMENU:=Python
   SECTION:=lang
index b58c7b84cda9676e7bd827933ee67f0c42649421..8577df5d1836b2ea41b44602b3418e3463724ff2 100644 (file)
@@ -11,26 +11,21 @@ PKG_NAME:=python-six
 PKG_VERSION:=1.12.0
 PKG_RELEASE:=2
 
-PKG_SOURCE:=six-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/six
+PYPI_NAME:=six
 PKG_HASH:=d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-six-$(PKG_VERSION)
-
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
 
 HOST_BUILD_DEPENDS:=python3/host
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-six/Default
   SECTION:=lang
   CATEGORY:=Languages
index 64c806c2842cf103d37ecf57449f2c6085c54f99..b5fbc4d5dac24577a1347ea93c7f60ece027c2c5 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=python-slugify
 PKG_VERSION:=3.0.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/python-slugify/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=a9f468227cb11e20e251670d78e1b5f6b0b15dd37bbd5c9814a25a904e44ff66
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 451e8db57a891ee37b0be23540c4b780d7c6a799..8ddf4e840ce53d2b229650a6cbbdadf03543acfb 100644 (file)
@@ -11,16 +11,15 @@ PKG_NAME:=python-sqlalchemy
 PKG_VERSION:=1.3.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=SQLAlchemy-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/S/SQLAlchemy/
+PYPI_NAME:=SQLAlchemy
 PKG_HASH:=0459bf0ea6478f3e904de074d65769a11d74cdc34438ab3159250c96d089aef0
-PKG_BUILD_DIR:=$(BUILD_DIR)/SQLAlchemy-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:sqlalchemy:sqlalchemy
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index ebff973f0ad87024a4e8d34e2fe9db92271d3285..3eb08665eafea275acb7ac5ab333029494822142 100644 (file)
@@ -11,11 +11,10 @@ PKG_NAME:=python-twisted
 PKG_VERSION:=19.7.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/T/Twisted
+PYPI_NAME:=Twisted
+PYPI_SOURCE_EXT:=tar.bz2
 PKG_HASH:=d5db93026568f60cacdc0615fcd21d46f694a6bfad0ef3ff53cde2b4bb85a39d
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-twisted-$(PKG_VERSION)
 PKG_BUILD_DEPENDS:=libtirpc
 
 PKG_LICENSE:=MIT
@@ -23,12 +22,11 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-twisted/Default
   SECTION:=lang
   CATEGORY:=Languages
index 2bc606ea2223cff851ba92f104b58aa6b9f7273a..9a0e2db7ee9456a944fbc9ffe64131fc7413f732 100644 (file)
@@ -11,21 +11,17 @@ PKG_NAME:=python-txsocksx
 PKG_VERSION:=1.15.0.2
 PKG_RELEASE:=4
 
-PKG_SOURCE:=txsocksx-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/t/txsocksx
+PYPI_NAME:=txsocksx
 PKG_HASH:=4f79b5225ce29709bfcee45e6f726e65b70fd6f1399d1898e54303dbd6f8065f
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-txsocksx-$(PKG_VERSION)
-
 PKG_LICENSE:=ISC
 PKG_LICENSE_FILES:=COPYING
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 PYTHON_PKG_SETUP_VARS:= \
   PKG_VERSION="$(PKG_VERSION)"
 
index 9d1c60f754f904a8f84e41a2c41cc7b00d34213c..708ef0fe5191835eb6eeafc9ab81e950d79e015b 100644 (file)
@@ -16,18 +16,14 @@ PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_CPE_ID:=cpe:/a:urllib3_project:urllib3
 
-PKG_SOURCE:=urllib3-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/u/urllib3
+PYPI_NAME:=urllib3
 PKG_HASH:=9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-urllib3-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-urllib3/Default
   SUBMENU:=Python
   SECTION:=lang
index e955868d96bf0fd577918c0149997e4c1d9e50da..371b793dc1dea2ae18590baf4b02c23ae7475cb0 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=voluptuous-serialize
 PKG_VERSION:=2.2.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/v/voluptuous-serialize/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=8b31660c7efdba0eb97ba65390b63cc62cc99ae3cd25d00e1873b183b38ef13d
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=COPYING
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 3485d8bd48944a7cacafcca497d42c41a53afdd0..910f82a51f107629d03d96a04b46c32898cdacf3 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-voluptuous
 PKG_VERSION:=0.11.7
 PKG_RELEASE:=1
 
-PKG_SOURCE:=voluptuous-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/v/voluptuous/
+PYPI_NAME:=voluptuous
 PKG_HASH:=2abc341dbc740c5e2302c7f9b8e2e243194fb4772585b991931cb5b22e9bf456
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-voluptuous-$(PKG_VERSION)
-
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=COPYING
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-voluptuous/Default
   SECTION:=lang
   CATEGORY:=Languages
index 3a78d955814fefcc1f894c9ff4bb24e6f1f2ff59..73a9e47030d4352b781687778fa592280dc05d88 100644 (file)
@@ -11,8 +11,7 @@ PKG_NAME:=python-yaml
 PKG_VERSION:=5.1.2
 PKG_RELEASE:=1
 
-PKG_SOURCE:=PyYAML-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/P/PyYAML
+PYPI_NAME:=PyYAML
 PKG_HASH:=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
@@ -20,14 +19,11 @@ PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:pyyaml_project:pyyaml
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-PyYAML-$(PKG_VERSION)
-
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-yaml/Default
   SECTION:=lang
   CATEGORY:=Languages
index d0aed33fadef17825259b770a1163d2b1409e948..08ac4382fc7c77365ecbdc5eb144195e7d06a615 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=yarl
 PKG_VERSION:=1.3.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=yarl-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/y/yarl/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=024ecdc12bc02b321bc66b41327f930d1c2c543fa9a561b39861da9388ba7aa9
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 20e3aeaca6f5ac6c14c972313904856930f19e60..55ad9d1a849911ce5596c6aed51d8381dba826f7 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python-zeroconf
 PKG_VERSION:=0.23.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=zeroconf-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/z/zeroconf/
+PYPI_NAME:=zeroconf
 PKG_HASH:=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/zeroconf-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=COPYING
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 6912398f44a812cca1e87ceef0246e4b12783c5a..3a48888ea4a72ce9981ff166666938ef83141f9c 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-zope-interface
 PKG_VERSION:=4.6.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=zope.interface-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/z/zope.interface
+PYPI_NAME:=zope.interface
 PKG_HASH:=1b3d0dcabc7c90b470e59e38a9acaa361be43b3a6ea644c0063951964717f0e5
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-zope-interface-$(PKG_VERSION)
-
 PKG_LICENSE:=ZPL-2.1
 PKG_LICENSE_FILES:=LICENSE.txt
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-zope-interface/Default
   SECTION:=lang
   CATEGORY:=Languages
index a6c099e28ca85165361b0e7f826bb28d93253a24..5fc5bd0aecfb63e86b22358019656877ad6bcf41 100644 (file)
@@ -11,16 +11,15 @@ PKG_NAME:=python3-bottle
 PKG_VERSION:=0.12.17
 PKG_RELEASE:=1
 
-PKG_SOURCE:=bottle-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/b/bottle
+PYPI_NAME:=bottle
 PKG_HASH:=e9eaa412a60cc3d42ceb42f58d15864d9ed1b92e9d630b8130c871c5bb16107c
-PKG_BUILD_DIR:=$(BUILD_DIR)/bottle-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 PKG_CPE_ID:=cpe:/a:bottlepy:bottle
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 67df225a88ece8febe495029de2c8820ac2d3d20..7202bac05587c40438f23af0e5871c534d44b584 100644 (file)
@@ -12,14 +12,14 @@ PKG_NAME:=Flask-Login
 PKG_VERSION:=0.4.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/f/flask-login/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=c815c1ac7b3e35e2081685e389a665f2c74d7e077cb93cecabaea352da4752ec
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 25315b9f64a2d5be0f2023de7405dbd32334c4fb..2aaeeec46623c80a523cd1c279bd21dbbec40494 100644 (file)
@@ -12,14 +12,14 @@ PKG_NAME:=maxminddb
 PKG_VERSION:=1.5.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/m/maxminddb/
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=449a1713d37320d777d0db286286ab22890f0a176492ecf3ad8d9319108f2f79
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index eac04cc068a98e7bcf27976f00ec07ab481be76c..f126df49bffa0c4e9257671632becb5d19aab838 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python3-netifaces
 PKG_VERSION:=0.10.9
 PKG_RELEASE:=1
 
-PKG_SOURCE:=netifaces-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/n/netifaces/
+PYPI_NAME:=netifaces
 PKG_HASH:=2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/netifaces-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 1488e6dc28f85214ac529535d21b1811da49d74e..875fe0d05110425b304c4a8a72ca13b278e689ec 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python3-pyroute2
 PKG_VERSION:=0.5.6
 PKG_RELEASE:=1
 
-PKG_SOURCE:=pyroute2-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyroute2
+PYPI_NAME:=pyroute2
 PKG_HASH:=deae0e6191a04c3ee213c6fae6ed779602ef5da5ca5e2fa533f27bc04326bfbe
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/pyroute2-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Martin Matějek <martin.matejek@nic.cz>
 PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
 PKG_LICENSE_FILES:=LICENSE.GPL.v2 LICENSE.Apache.v2
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index f3d505f29e81efb43b75e7cdb6a1f0c7b9b80a0f..a1967f3ed062ddcd2fb7f5d1f53121e2f8b9b548 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python3-unidecode
 PKG_VERSION:=1.1.1
 PKG_RELEASE:=1
 
-PKG_SOURCE:=Unidecode-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/u/unidecode/
+PYPI_NAME:=Unidecode
 PKG_HASH:=2b6aab710c2a1647e928e36d69c21e76b453cd455f4e2621000e54b2a9b8cce8
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/Unidecode-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 1368a5dcd2744044dc52fef6f28146b2a3fdf1bc..bf8119f6849594e423a82bc94ad5e29ca3bb9f65 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=ruamel-yaml
 PKG_VERSION:=0.15.100
 PKG_RELEASE:=1
 
-PKG_SOURCE:=ruamel.yaml-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/ruamel.yaml/
+PYPI_NAME:=ruamel.yaml
 PKG_HASH:=8e42f3067a59e819935a2926e247170ed93c8f0b2ab64526f888e026854db2e4
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-ruamel.yaml-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/ruamel-yaml/Default
   SECTION:=lang
   CATEGORY:=Languages
index 86be75835b542f553e5a7b8027fdd98c3425d105..3bc448bcf0dbe44fc238e807a1cafa54f9286c5a 100644 (file)
@@ -11,22 +11,18 @@ PKG_NAME:=python-text-unidecode
 PKG_VERSION:=1.2
 PKG_RELEASE:=1
 
-PKG_SOURCE:=text-unidecode-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/t/text-unidecode/
+PYPI_NAME:=text-unidecode
 PKG_HASH:=5a1375bb2ba7968740508ae38d92e1f889a0832913cb1c447d5e2046061a396d
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-text-unidecode-$(PKG_VERSION)
-
 PKG_LICENSE:=Artistic-1.0-cl8
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-text-unidecode/Default
   SECTION:=lang
   CATEGORY:=Languages
index 3aa345b06fcae3a4d7c6c8c703cd39dfee70f178..49e81e14383cdc54dc163ee55bf1137a6605ffa8 100644 (file)
@@ -8,18 +8,15 @@ PKG_VERSION:=0.9.6.1
 PKG_RELEASE:=1
 PKG_LICENSE:=Apache-2.0
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/v/vobject
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=96512aec74b90abb71f6b53898dd7fe47300cc940104c4f79148f0671f790101
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-vobject-$(PKG_VERSION)
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-vobject/Default
   SUBMENU:=Python
   SECTION:=lang
index 77beb2a535649f06eb542f13d229ff2dffcd4429..78d9d6a5667290debc20437cb6870d577fd2519a 100644 (file)
@@ -11,16 +11,14 @@ PKG_NAME:=python-xmltodict
 PKG_VERSION:=0.12.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=xmltodict-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/x/xmltodict/
+PYPI_NAME:=xmltodict
 PKG_HASH:=50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/xmltodict-$(PKG_VERSION)
-
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python3-package.mk
 
index 801eaf474b63a98bdd817573bfe0c28cbab55bd4..6a36dc5f9572633d918f37c8265d20ad2fdf0f69 100644 (file)
@@ -11,15 +11,14 @@ PKG_NAME:=youtube-dl
 PKG_VERSION:=2019.10.29
 PKG_RELEASE:=1
 
-PKG_SOURCE:=youtube_dl-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/y/youtube_dl/
+PYPI_NAME:=youtube_dl
 PKG_HASH:=0b6611807b0bb978a0384ddebf215ea1f974ecf73d80d04e9f614ff30b1443f0
-PKG_BUILD_DIR:=$(BUILD_DIR)/youtube_dl-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Adrian Panella <ianchi74@outlook.com>, Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=Unlicense
 PKG_LICENSE_FILES:=LICENSE
 
+include ../../lang/python/pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python3-package.mk
 
index cca8f2b7677f34ff28d739f21b5f9700fc0db266..2cc600d9eb273c5db0b212c55feba8ec373a8abb 100644 (file)
@@ -11,14 +11,14 @@ PKG_NAME:=obfsproxy
 PKG_VERSION:=0.2.13
 PKG_RELEASE:=3
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/o/obfsproxy
+PYPI_NAME:=$(PKG_NAME)
 PKG_HASH:=1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66
 
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 
+include ../../lang/python/pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python-package.mk
 
index 6f589509578d5457d25106c6cae3f9026050a53c..ac73d67620c6d5b78a8d3ea672f3d2450f03cad3 100644 (file)
@@ -10,17 +10,15 @@ PKG_NAME:=radicale
 PKG_VERSION:=1.1.6
 PKG_RELEASE:=3
 
-PKG_SOURCE:=Radicale-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/R/Radicale
+PYPI_NAME:=Radicale
 PKG_HASH:=c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/Radicale-$(PKG_VERSION)
-
 PKG_MAINTAINER:=
 PKG_LICENSE:=GPL-3.0
 PKG_LICENSE_FILES:=COPYING
 PKG_CPE_ID:=cpe:/a:radicale:radicale
 
+include ../../lang/python/pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python3-package.mk
 
index 1ed70584813813dc4bf713c623a9374c435472b0..e41627db95c9396e7d853996c7ac12e3c8d0f7bf 100644 (file)
@@ -12,16 +12,13 @@ PKG_LICENSE:=GPL-3.0
 PKG_LICENSE_FILES:=COPYING
 PKG_CPE_ID:=cpe:/a:radicale:radicale
 
-PKG_SOURCE:=Radicale-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/R/Radicale/
+PYPI_NAME:=Radicale
 PKG_HASH:=02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db
-PKG_BUILD_DIR:=$(BUILD_DIR)/radicale2-$(BUILD_VARIANT)-$(PKG_VERSION)
 
+include ../../lang/python/pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../../lang/python/python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/radicale2/Default
   SECTION:=net
   CATEGORY:=Network