initial import
This commit is contained in:
24
python-chardet/000-support-pytest-4.patch
Normal file
24
python-chardet/000-support-pytest-4.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 440828f8faafdb58700c64a9ea8f6a30b154c08b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Mon, 11 Nov 2019 21:02:51 +0100
|
||||
Subject: [PATCH] Support pytest 4, don't apply marks directly to parameters
|
||||
(#174)
|
||||
|
||||
Fixes https://github.com/chardet/chardet/issues/173
|
||||
---
|
||||
test.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test.py b/test.py
|
||||
index 9833307..ad2b753 100644
|
||||
--- a/test.py
|
||||
+++ b/test.py
|
||||
@@ -59,7 +59,7 @@ def gen_test_params():
|
||||
full_path = join(path, file_name)
|
||||
test_case = full_path, encoding
|
||||
if full_path in EXPECTED_FAILURES:
|
||||
- test_case = pytest.mark.xfail(test_case)
|
||||
+ test_case = pytest.param(*test_case, marks=pytest.mark.xfail)
|
||||
yield test_case
|
||||
|
||||
|
||||
51
python-chardet/PKGBUILD
Normal file
51
python-chardet/PKGBUILD
Normal file
@@ -0,0 +1,51 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgbase=python-chardet
|
||||
pkgname=('python-chardet' 'tauthon-chardet')
|
||||
pkgver=3.0.4
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url='https://github.com/chardet/chardet'
|
||||
license=('LGPL-2.1')
|
||||
makedepends=('python-setuptools' 'tauthon-setuptools')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/c/chardet/chardet-$pkgver.tar.gz"
|
||||
'000-support-pytest-4.patch')
|
||||
sha512sums=('61a03b23447a2bfe52ceed4dd1b9afdb5784da1933a623776883ee9f297e341f633e27f0ce0230bd5fdc5fdb5382105ab42736a74a417ddeb9f83af57455dba5'
|
||||
'57bfeb5752123fbf9f9f61386039b7ceb9255290225f73453d2d52f2366e1949ed92692912571c8b451b521aedfa8b605879b2742aec7f1fdce4db10705cbe53')
|
||||
|
||||
prepare() {
|
||||
pushd "$srcdir/chardet-$pkgver"
|
||||
patch -Np1 -i "$srcdir/000-support-pytest-4.patch"
|
||||
popd
|
||||
|
||||
cp -a chardet-$pkgver{,-tauthon}
|
||||
}
|
||||
|
||||
package_python-chardet() {
|
||||
depends=('python-setuptools')
|
||||
pkgdesc="Python module for character encoding auto-detection"
|
||||
|
||||
cd chardet-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
|
||||
# License
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
package_tauthon-chardet() {
|
||||
depends=('tauthon-setuptools')
|
||||
pkgdesc="Tauthon module for character encoding auto-detection"
|
||||
|
||||
cd chardet-$pkgver-tauthon
|
||||
tauthon setup.py install --root="$pkgdir" --optimize=1
|
||||
|
||||
# To avoid file conflict with the python version
|
||||
mv "$pkgdir"/usr/bin/chardetect{,-tauthon}
|
||||
|
||||
# License
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user