summaryrefslogtreecommitdiff
path: root/user/py3-ordered-set/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-01-11 21:36:39 +0000
committerZach van Rijn <me@zv.io>2022-06-12 23:51:28 +0000
commit482d42461e6a74c2cbcc8345be6f3f57bacf441b (patch)
tree71e92595f4c28b176249df13a66bd73458202851 /user/py3-ordered-set/APKBUILD
parenta7b894217fc07ecd4dbb1fb65a01a06c294a87c1 (diff)
downloadpackages-482d42461e6a74c2cbcc8345be6f3f57bacf441b.tar.gz
packages-482d42461e6a74c2cbcc8345be6f3f57bacf441b.tar.bz2
packages-482d42461e6a74c2cbcc8345be6f3f57bacf441b.tar.xz
packages-482d42461e6a74c2cbcc8345be6f3f57bacf441b.zip
user/py3-*: bunch of new py3 packages and updates. fixes #458, #459.
Diffstat (limited to 'user/py3-ordered-set/APKBUILD')
-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"