Last active
July 20, 2017 13:37
-
-
Save ryukinix/632843e7315e6ba34acee9e3fddbf2fd to your computer and use it in GitHub Desktop.
A new version of PKGBUILD for python-imapclient to avoid the mock==1.3.0 legacy dependency error on Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Carol Alexandru shapeshifter@archlinux.us | |
# Fixed by Manoel Vilela <manoel_vilela@engineer.com> | |
pkgname=python-imapclient | |
pkgver=1.0.2 | |
pkgrel=1 | |
pkgdesc="An easy-to-use, Pythonic and complete IMAP client library with no dependencies outside the Python standard library" | |
arch=('any') | |
url="http://imapclient.freshfoo.com/" | |
license=('BSD') | |
depends=('python' 'python-backports.ssl') | |
makedepends=('python-distribute') | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=(!emptydirs) | |
source=("http://freshfoo.com/projects/IMAPClient/IMAPClient-$pkgver.tar.gz") | |
md5sums=('525aa0bbd2056ba06a8d286be082911e') | |
package() { | |
cd "$srcdir/IMAPClient-$pkgver" | |
sed "s/\s'mock==1.3.0'//" -i setup.py | |
echo "Deleted mock==1.3.0 line on setup.py to avoid build error..." | |
python setup.py install --root=$pkgdir/ --optimize=1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment