python-cssutils: drop from repos to AUR

This commit is contained in:
Eli Schwartz 2020-08-19 21:52:38 -04:00
commit f77eef4c44
No known key found for this signature in database
GPG key ID: CEB167EFB5722BD6
2 changed files with 59 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -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

45
PKGBUILD Normal file
View file

@ -0,0 +1,45 @@
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
# Contributor: Michal Marek <reqamst at gmail dot com>
# Contributor: Rick W. Chena <stuffcorpse@archlinux.us>
# Contributor: Andrea Fagiani <andfagiani _at_ gmail dot com>
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
}