From d02f4d0ae176ee7bcea4c87e50d38691b4ae5f1e Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 20 May 2018 18:30:51 +0200 Subject: [PATCH] python-Cheroot: fix depends --- .../python-Cheroot/patches/fix-setup.py.patch | 20 +++++++++++++++++++ srcpkgs/python-Cheroot/template | 10 +++++----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/python-Cheroot/patches/fix-setup.py.patch diff --git a/srcpkgs/python-Cheroot/patches/fix-setup.py.patch b/srcpkgs/python-Cheroot/patches/fix-setup.py.patch new file mode 100644 index 00000000000..5625f54f721 --- /dev/null +++ b/srcpkgs/python-Cheroot/patches/fix-setup.py.patch @@ -0,0 +1,20 @@ +--- setup.py.orig ++++ setup.py +@@ -43,7 +43,7 @@ + ), + python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', + install_requires=[ +- 'backports.functools_lru_cache', ++ 'backports.functools_lru_cache;python_version<"3.4"', + 'six>=1.11.0', + 'more_itertools>=2.6', + ], +@@ -70,7 +70,7 @@ + 'codecov', + + 'pytest-cov', +- 'backports.unittest_mock', ++ 'backports.unittest_mock;python_version<"3.4"', + ], + }, + setup_requires=[ diff --git a/srcpkgs/python-Cheroot/template b/srcpkgs/python-Cheroot/template index 7c386e39abe..7a27d75643d 100644 --- a/srcpkgs/python-Cheroot/template +++ b/srcpkgs/python-Cheroot/template @@ -1,16 +1,16 @@ # Template file for 'python-Cheroot' pkgname=python-Cheroot version=6.2.4 -revision=1 +revision=2 noarch=yes wrksrc="cheroot-${version}" build_style=python-module pycompile_module="cheroot" hostmakedepends="python-setuptools python3-setuptools" -depends="python-six" -short_desc="High-performance, pure-Python HTTP server" +depends="python-six python-more-itertools python-backports.functools_lru_cache" +short_desc="High-performance, pure-Python HTTP server (Python2)" maintainer="Andrea Brancaleoni " -license="3-clause-BSD" +license="BSD-3-Clause" homepage="https://github.com/cherrypy/cheroot" distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz" checksum=9997623a88400fd41706978adcfbeceee1fe0202a886228e471a58263b643fef @@ -26,8 +26,8 @@ post_install() { python3-Cheroot_package() { noarch=yes - depends="python3-six" pycompile_module="cheroot" + depends="python3-six python3-more-itertools" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3*