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

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 29 19:51:01 UTC 2021


    Date: Monday, November 29, 2021 @ 19:51:01
  Author: jelle
Revision: 1057610

upgpkg: python-pysocks 1.7.1-5

Modified:
  python-pysocks/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++----------------------------
 1 file changed, 3 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 19:45:31 UTC (rev 1057609)
+++ PKGBUILD	2021-11-29 19:51:01 UTC (rev 1057610)
@@ -2,15 +2,15 @@
 # Contributor: Michael Schubert <mschu.dev at gmail>
 
 pkgbase=python-pysocks
-pkgname=(python-pysocks python2-pysocks)
+pkgname=(python-pysocks)
 pkgver=1.7.1
 _commit=f660e75d4844e64e4b162b0c01f8df8d866ee000
-pkgrel=4
+pkgrel=5
 pkgdesc="SOCKS4, SOCKS5 or HTTP proxy (Anorov fork PySocks replaces socksipy)"
 arch=('any')
 license=('BSD')
 url="https://github.com/Anorov/PySocks"
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools')
 checkdepends=('lib32-glibc')
 source=("$pkgbase-$_commit.tar.gz::https://github.com/Anorov/PySocks/archive/$_commit.tar.gz")
 sha512sums=('d5db8d55603758cecd0e4974729df437febcfabe8a80dcbfe6132d0ce5a23caeccfefff01bf918cdbb9f26db4cb795d26ed1f3c536c415b496e4ac1bd43e9240')
@@ -23,26 +23,11 @@
 build() {
   cd "$srcdir"/PySocks-$pkgver
   python setup.py build
-
-  cd "$srcdir"/PySocks-$pkgver-py2
-  python2 setup.py build
 }
 
 # Tests disabled as it requires external services to run
 # Fox: Removed depends. I didn't want to remove the code<3
 check_disabled() {
-  cd "$srcdir"/PySocks-$pkgver-py2/test
-  python2 socks4server.py &
-  _SOCKS4SERVER=$!
-  python2 httpproxy.py &
-  _HTTPPROXY=$1
-
-  ./mocks start
-
-  sleep 1
-
-  python2 sockstest.py
-
   cd "$srcdir"/PySocks-$pkgver/test
   python sockstest.py
 
@@ -60,13 +45,3 @@
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
-
-package_python2-pysocks() {
-  depends=('python2')
-  provides=('python2-socks')
-  replaces=('python2-socks')
-
-  cd PySocks-$pkgver-py2
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}



More information about the arch-commits mailing list