blob: be69093e0c1caf8b7ddfa981dcb017b7412b3f18 (
plain) (
tree)
|
|
# 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"
|