aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-12-23 16:27:26 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-12-31 16:47:11 +0000
commit852eb6ae7cd4c663659830dc4e192fbfcab3cdef (patch)
tree9ce95a4c087a6291fd16fd132fdc7fc31640fa2a /main
parentbcfde9445e1e86b7bbc8a5fb30e8ddd525e9a874 (diff)
downloadaports-852eb6ae7cd4c663659830dc4e192fbfcab3cdef.tar.bz2
aports-852eb6ae7cd4c663659830dc4e192fbfcab3cdef.tar.xz
main/py3-pycryptodome: replace py3-crypto
pycrypto's last release was in [2013][0], and pycryptodome is mostly [backwards compatible][1], so replace py3-crypto. [0]: https://pypi.org/project/pycrypto/#history [1]: https://pycryptodome.readthedocs.io/en/latest/src/vs_pycrypto.html
Diffstat (limited to 'main')
-rw-r--r--main/py3-crypto/APKBUILD35
-rw-r--r--main/py3-crypto/python-3.8.patch13
-rw-r--r--main/py3-pycryptodome/APKBUILD8
3 files changed, 2 insertions, 54 deletions
diff --git a/main/py3-crypto/APKBUILD b/main/py3-crypto/APKBUILD
deleted file mode 100644
index 7ec0d23b71..0000000000
--- a/main/py3-crypto/APKBUILD
+++ /dev/null
@@ -1,35 +0,0 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname=py3-crypto
-_pkgname=pycrypto
-pkgver=2.6.1
-pkgrel=5
-pkgdesc="A Python3 collection of cryptographic algorithms and protocols"
-url="https://www.dlitz.net/software/pycrypto/"
-arch="all"
-license="BSD"
-makedepends="gmp-dev python3-dev"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
- python-3.8.patch
- "
-builddir="$srcdir/$_pkgname-$pkgver"
-replaces="py-crypto" # Backwards compatibility
-provides="py-crypto=$pkgver-r$pkgrel" # Backwards compatibility
-
-build() {
- cd "$builddir"
- python3 setup.py build
-}
-
-check() {
- cd "$builddir"
- python3 setup.py test
-}
-
-package() {
- cd "$builddir"
- python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}
-
-sha512sums="20a4aed4dac4e9e61d773ebc1d48ea577e9870c33f396be53d075a9bf8487d93e75e200179882d81e452efd0f6751789bac434f6f431b3e7c1c8ef9dba392847 pycrypto-2.6.1.tar.gz
-2228e36a59be9a23c13a44a037765798131d2a5a4b783dd936f8ce5b8476efab7187c77e681bd3544d43e73b3248a25bdea0504546d5ce6e56f39589475f59ba python-3.8.patch"
diff --git a/main/py3-crypto/python-3.8.patch b/main/py3-crypto/python-3.8.patch
deleted file mode 100644
index a82929ab7f..0000000000
--- a/main/py3-crypto/python-3.8.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py
-index 957e006..34e2a31 100644
---- a/lib/Crypto/Random/_UserFriendlyRNG.py
-+++ b/lib/Crypto/Random/_UserFriendlyRNG.py
-@@ -74,7 +74,7 @@ class _EntropyCollector(object):
- self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
-
- # Add the fractional part of time.clock()
-- t = time.clock()
-+ t = time.perf_counter()
- self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
-
-
diff --git a/main/py3-pycryptodome/APKBUILD b/main/py3-pycryptodome/APKBUILD
index 4a4c96626d..80e1564dc9 100644
--- a/main/py3-pycryptodome/APKBUILD
+++ b/main/py3-pycryptodome/APKBUILD
@@ -11,12 +11,8 @@ makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v$pkgver.tar.gz"
builddir="$srcdir"/pycryptodome-$pkgver
-replaces="py-pycryptodome" # Backwards compatibility
-provides="py-pycryptodome=$pkgver-r$pkgrel" # Backwards compatibility
-
-prepare() {
- touch "$builddir"/.separate_namespace
-}
+replaces="py-pycryptodome py3-crypto" # Backwards compatibility
+provides="py-pycryptodome=$pkgver-r$pkgrel py3-crypto=$pkgrel-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py --quiet build