[arch-commits] Commit in (pyopenssl python-pyopenssl python-pyopenssl/trunk/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Feb 14 13:49:30 UTC 2022


    Date: Monday, February 14, 2022 @ 13:49:30
  Author: felixonmars
Revision: 437188

rename pkgbase back to pkgname

Added:
  python-pyopenssl/
Modified:
  python-pyopenssl/trunk/PKGBUILD
Deleted:
  pyopenssl/

----------+
 PKGBUILD |   26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

Modified: python-pyopenssl/trunk/PKGBUILD
===================================================================
--- pyopenssl/trunk/PKGBUILD	2022-02-14 12:02:52 UTC (rev 437187)
+++ python-pyopenssl/trunk/PKGBUILD	2022-02-14 13:49:30 UTC (rev 437188)
@@ -2,22 +2,18 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 # Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 
-pkgbase=pyopenssl
-pkgname=('python-pyopenssl')
-pkgver=21.0.0
-pkgrel=5
+pkgname=python-pyopenssl
+pkgver=22.0.0
+pkgrel=1
 arch=('any')
 pkgdesc="Python3 wrapper module around the OpenSSL library"
 url='https://github.com/pyca/pyopenssl'
 license=('Apache')
-depends=('openssl' 'python' 'python-six' 'python-cryptography')
-replaces=('pyopenssl')
-provides=('pyopenssl')
-conflicts=('pyopenssl')
+depends=('python-cryptography')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pretend' 'python-flaky')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pyca/pyopenssl/archive/${pkgver}.tar.gz)
-sha512sums=('bad555b8b8faa60992aad779e9c9af27b132a894d4d3e59fb65f423770b31f278f5966127ca7cdcf42184cefe0c7d6fa94b84482d0e97089031e4e508d77c424')
+checkdepends=('python-pytest' 'python-pretend' 'python-flaky')
+source=(https://github.com/pyca/pyopenssl/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('9e2aabdc4591662520320a22f75a3fa2d68576508f4c87a5a03ab1f14e02b099fbd054d72212ca6e780ee0146aae142365f7f79ec38557ceba0062ea72ee2178')
 
 prepare() {
   export LC_CTYPE=en_US.UTF-8
@@ -24,16 +20,16 @@
 }
 
 build() {
-  cd "$srcdir"/pyopenssl-$pkgver
+  cd pyopenssl-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/pyopenssl-$pkgver
-  python setup.py pytest || warning "Tests failed due to missing SSLv3_METHOD"
+  cd pyopenssl-$pkgver
+  PYTHONPATH="$PWD"/build/lib pytest
 }
 
-package_python-pyopenssl() {
+package() {
   cd pyopenssl-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }



More information about the arch-commits mailing list