python-Cheroot: fix depends
This commit is contained in:
parent
4266f6ce24
commit
d02f4d0ae1
2 changed files with 25 additions and 5 deletions
20
srcpkgs/python-Cheroot/patches/fix-setup.py.patch
Normal file
20
srcpkgs/python-Cheroot/patches/fix-setup.py.patch
Normal file
|
@ -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=[
|
|
@ -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 <abc@pompel.me>"
|
||||
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*
|
||||
|
|
Loading…
Reference in a new issue