Date: Friday, April 7, 2023 @ 09:06:58
  Author: dvzrv
Revision: 1440912

archrelease: copy trunk to community-staging-any

Added:
  python-oscrypto/repos/community-staging-any/
  python-oscrypto/repos/community-staging-any/PKGBUILD
    (from rev 1440911, python-oscrypto/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-oscrypto/repos/community-staging-any/PKGBUILD (from rev 1440911, 
python-oscrypto/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 09:06:58 UTC (rev 1440912)
@@ -0,0 +1,40 @@
+# Maintainer: Jonas Witschel <[email protected]>
+pkgname=python-oscrypto
+pkgver=1.3.0
+pkgrel=4
+pkgdesc='Compiler-free Python crypto library backed by the OS'
+arch=('any')
+url='https://github.com/wbond/oscrypto'
+license=('MIT')
+depends=('openssl' 'python' 'python-asn1crypto')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
+sha512sums=('b5baf72e1a09615b267be4d1c4baf2375bb939b5bd3d717ca9ca70776541f590a8608bef95991967e23f3794e6220709ed2fe5acdedfe9bfce1921c879a74bec')
+
+build() {
+       cd "${pkgname#python-}-$pkgver"
+       python -m build --wheel --no-isolation
+}
+
+check() {
+       local pytest_options=(
+               # https://github.com/wbond/oscrypto/issues/73
+               --deselect tests/test_tls.py::TLSTests::test_tls_connect_dh1024
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_error_client_cert_required
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_error_domain_mismatch
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_error_san_mismatch
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_error_wildcard_mismatch
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_extra_trust_roots
+               --deselect 
tests/test_tls.py::TLSTests::test_tls_wildcard_success
+       )
+
+       cd "${pkgname#python-}-$pkgver"
+       pytest "${pytest_options[@]}"
+}
+
+package() {
+       cd "${pkgname#python-}-$pkgver"
+       python -m installer --destdir="$pkgdir" dist/*.whl
+       install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}

Reply via email to