mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 20:25:14 +02:00
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'
|
# Template file for 'python-Cheroot'
|
||||||
pkgname=python-Cheroot
|
pkgname=python-Cheroot
|
||||||
version=6.2.4
|
version=6.2.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="cheroot-${version}"
|
wrksrc="cheroot-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="cheroot"
|
pycompile_module="cheroot"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python-six"
|
depends="python-six python-more-itertools python-backports.functools_lru_cache"
|
||||||
short_desc="High-performance, pure-Python HTTP server"
|
short_desc="High-performance, pure-Python HTTP server (Python2)"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="3-clause-BSD"
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/cherrypy/cheroot"
|
homepage="https://github.com/cherrypy/cheroot"
|
||||||
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
||||||
checksum=9997623a88400fd41706978adcfbeceee1fe0202a886228e471a58263b643fef
|
checksum=9997623a88400fd41706978adcfbeceee1fe0202a886228e471a58263b643fef
|
||||||
|
@ -26,8 +26,8 @@ post_install() {
|
||||||
|
|
||||||
python3-Cheroot_package() {
|
python3-Cheroot_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3-six"
|
|
||||||
pycompile_module="cheroot"
|
pycompile_module="cheroot"
|
||||||
|
depends="python3-six python3-more-itertools"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
|
|
Loading…
Add table
Reference in a new issue