OCaml 4.14.0 rebuild
[arch-packages.git] / python-ordered-set / repos / extra-any / PKGBUILD
blobfa23cf809cc0c58ac0c96aa495c40a76a49c43a0
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Tobias Roettger <toroettg@gmail.com>
4 pkgname=python-ordered-set
5 pkgver=4.0.2
6 pkgrel=6
7 pkgdesc='A MutableSet that remembers its order, so that every entry has an index'
8 arch=('any')
9 url="https://github.com/LuminosoInsight/ordered-set"
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest')
14 source=("https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz")
15 md5sums=('5d88f3870c32d4868b28c8fe833f7e74')
17 build() {
18   cd ordered-set-$pkgver
19   python setup.py build
22 check() {
23   cd ordered-set-$pkgver
24   pytest --doctest-modules test.py ordered_set.py README.md --doctest-glob=README.md --ignore=setup.py
27 package() {
28   cd ordered-set-$pkgver
29   python setup.py install --root="$pkgdir/" --optimize=1
30   install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
33 # vim:set ts=2 sw=2 et: