aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-11-14 04:30:13 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-11-14 11:08:00 +0000
commitb9367f321fd4a4dc72d57eb6a95067dfe1cbc8fb (patch)
tree3ac6adc91ad9e0fd6406881fc62ab6f897a9baa0
parent6057c7fe3a8aabd7a170e7f0752959973057f2b5 (diff)
downloadaports-b9367f321fd4a4dc72d57eb6a95067dfe1cbc8fb.tar.gz
aports-b9367f321fd4a4dc72d57eb6a95067dfe1cbc8fb.tar.bz2
aports-b9367f321fd4a4dc72d57eb6a95067dfe1cbc8fb.tar.xz
main/py3-sortedcontainers: change source url and add tests
-rw-r--r--main/py3-sortedcontainers/APKBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/main/py3-sortedcontainers/APKBUILD b/main/py3-sortedcontainers/APKBUILD
index e6074a7d94..82daa1b00d 100644
--- a/main/py3-sortedcontainers/APKBUILD
+++ b/main/py3-sortedcontainers/APKBUILD
@@ -1,18 +1,18 @@
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py3-sortedcontainers
-_pkgname=sortedcontainers
+_pkgname=python-sortedcontainers
pkgver=2.3.0
pkgrel=0
pkgdesc="Python library for sorting collections and containers"
url="http://www.grantjenks.com/docs/sortedcontainers"
-arch="noarch"
license="Apache-2.0"
-options="!check" # source tarball doesn't have tests
+arch="noarch"
depends="python3"
makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+checkdepends="py3-pytest"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-sortedcontainers" # Backwards compatibility
provides="py-sortedcontainers=$pkgver-r$pkgrel" # Backwards compatibility
@@ -21,8 +21,12 @@ build() {
python3 setup.py build
}
+check() {
+ PYTHONPATH="$PWD"/build/lib python3 -m pytest
+}
+
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}
-sha512sums="fc4a7d9c281c17fdeab10d56857914ce321d6d5437a09e29a92973f16bb3e79b2b14a13460ba51c941174c0483e29941843938b91602f97e4a8e1ee01abcce80 sortedcontainers-2.3.0.tar.gz"
+sha512sums="0488e2f9f07ea7e4737ade69441f02614b63cfccb32a71af4e5953001bfa840d2e113a36a0a0a6d4c1e7fdd920ac3937b0baaea522d742547a4d81a99b8d1a6c python-sortedcontainers-2.3.0.tar.gz"