summaryrefslogtreecommitdiff
path: root/user/py3-ordered-set
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-ordered-set')
-rw-r--r--user/py3-ordered-set/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/py3-ordered-set/APKBUILD b/user/py3-ordered-set/APKBUILD
new file mode 100644
index 000000000..be69093e0
--- /dev/null
+++ b/user/py3-ordered-set/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=py3-ordered-set
+pkgver=4.0.2
+pkgrel=0
+pkgdesc="MutableSet that remembers its order"
+url="https://github.com/LuminosoInsight/ordered-set"
+arch="noarch"
+license="MIT"
+depends="python3"
+options="!check"
+source="https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz"
+builddir="$srcdir/ordered-set-$pkgver"
+
+package() {
+ # Can't use setuptools since setuptools depends on this
+ local _site_pkgs="$(python3 -c 'import site; print(site.getsitepackages()[0])')"
+ local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
+
+
+ mkdir -p "$pkgdir"/"$_site_pkgs"
+ cp -rv ordered_set.egg-info \
+ "$pkgdir"/$_site_pkgs/ordered_set-$pkgver-py$_py3ver.egg-info
+ cp -rv ordered_set.py "$pkgdir"/$_site_pkgs/
+
+ python3 -m compileall -f -q "$pkgdir"/$_site_pkgs/*.py
+}
+
+sha512sums="d7031ae90fdaf116c27415170a7197be34ff4b977a03684a6fb53dc453845a97cd32b9666ed3ae58fb7bc722ff3b2b4f2e156578841033759b490b359a5619b4 ordered-set-4.0.2.tar.gz"