Skip to content

Instantly share code, notes, and snippets.

@ryukinix
Last active July 20, 2017 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryukinix/632843e7315e6ba34acee9e3fddbf2fd to your computer and use it in GitHub Desktop.
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
# 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