1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-sortedcontainers
6 pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet"
9 url="http://www.grantjenks.com/docs/sortedcontainers/"
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-sortedcontainers/archive/v$pkgver.tar.gz")
14 sha512sums=('f80185c6f95a85cc78f88f6f6cf389eb48be22cf94d5fcd84f3592873f17de37ec7f44c1627b7f02956ac4b4f74ca4febefc47d3c6232f70ee05dbb2449ad770')
18 sed -i '/tests_require/d' python-sortedcontainers-$pkgver/setup.py
22 cd python-sortedcontainers-$pkgver
27 cd python-sortedcontainers-$pkgver
28 python setup.py pytest
32 cd python-sortedcontainers-$pkgver
33 python setup.py install --root="$pkgdir" --optimize=1