1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jim Bridgewater <jwbwater at gmail dot com>
3 # Contributor: delta48 <dark.magician.48[at]gmail[dot]com>
5 pkgname=python-pyperclip
7 _commit=714be1f3f8e5bb289bbd77aa83be212d660f3cb0
9 pkgdesc="A cross-platform clipboard module for Python"
11 url="https://github.com/asweigart/pyperclip"
13 makedepends=('python-setuptools')
14 # GTK/Qt tests crash xvfb, and Klipper tests require a running klipper
15 checkdepends=('xorg-server-xvfb' 'python-pytest' 'xsel' 'xclip')
17 optdepends=('xclip: xclip backend'
19 'plasma-workspace: klipper backend')
20 source=("$pkgname-$_commit.tar.gz::https://github.com/asweigart/pyperclip/archive/$_commit.tar.gz")
21 sha512sums=('616619dbbfec3e28f4bc86ef9088df0b77b32f6183f42689c23f6a43a5e905ea0c6e939237fe905c62e4ed46e4fd029d512c43fb99549252b8841dc6eb811ec4')
24 mv pyperclip-{$_commit,$pkgver}
34 PYTHONPATH="$PWD"/build/lib xvfb-run py.test
39 python setup.py install --root="$pkgdir" --optimize=1
40 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
43 # vim:set ts=2 sw=2 et: