From 1cf41a88c5acb97d9681c11f5108d60656e48306 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Tue, 8 Sep 2020 12:09:39 +0200 Subject: [PATCH] python-rsa: downgrade to version 4.5 for python2 Note: This fixes error introduced in https://github.com/openwrt/packages/commit/7af8eaad11ad2e449ed47529f1b325d7643b7817 Version 4.6 doesn't support python2 Signed-off-by: Jan Pavlinec --- lang/python/python-rsa/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lang/python/python-rsa/Makefile b/lang/python/python-rsa/Makefile index bea2f4157b..ca41ef1f8f 100644 --- a/lang/python/python-rsa/Makefile +++ b/lang/python/python-rsa/Makefile @@ -1,11 +1,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rsa + +ifeq ($(BUILD_VARIANT),python3) PKG_VERSION:=4.6 +PKG_HASH:=109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa +else +PKG_VERSION:=4.5 +PKG_HASH:=4d409f5a7d78530a4a2062574c7bd80311bc3af29b364e293aa9b03eea77714f +endif + PKG_RELEASE:=1 PYPI_NAME:=$(PKG_NAME) -PKG_HASH:=109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa PKG_MAINTAINER:=Daniel Danzberger PKG_LICENSE:=MIT -- 2.30.2