commit f77eef4c445418599de4b26a534d0419cc0eba5a Author: Eli Schwartz Date: Wed Aug 19 21:52:38 2020 -0400 python-cssutils: drop from repos to AUR diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b74a930becb8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-cssutils + pkgdesc = A CSS Cascading Style Sheets library for Python + pkgver = 1.0.2 + pkgrel = 5 + url = http://cthedot.de/cssutils/ + arch = any + license = LGPL3 + checkdepends = python-pbr + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-1.0.2.tar.gz + md5sums = dc66d96c2d78f1687f59ac412fe9d318 + +pkgname = python-cssutils diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c88769d74dde --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Giovanni Scafora +# Contributor: Simon Sapin +# Contributor: Michal Marek +# Contributor: Rick W. Chena +# Contributor: Andrea Fagiani + +pkgname=python-cssutils +pkgver=1.0.2 +pkgrel=5 +pkgdesc="A CSS Cascading Style Sheets library for Python" +arch=('any') +url="http://cthedot.de/cssutils/" +license=('LGPL3') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pbr') +source=("https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-${pkgver}.tar.gz") +md5sums=('dc66d96c2d78f1687f59ac412fe9d318') + +prepare() { + cd cssutils-${pkgver} + + # don't pin old versions of testrunner + sed -i "/tests_require/{s/pbr < 1\.7\.0/pbr/;s/'mock',//}" setup.py + sed -i 's/import mock/from unittest import mock/' src/cssutils/tests/*.py +} + +build() { + cd cssutils-${pkgver} + + 2to3 --no-diffs -nw src + python setup.py build +} + +check() { + cd "${srcdir}/cssutils-${pkgver}" + + python3 setup.py test +} + +package() { + cd "cssutils-${pkgver}" + + python3 setup.py install --root="${pkgdir}/" --optimize=1 +}