summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e513f872c5234ac4ac141a3829fcf1c802f968b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Butui Hu <hot123tea123@gmail.com>

_pkgname=expiring-dict
pkgname=python-expiring-dict
pkgver=1.1.1
pkgrel=2
pkgdesc='Python dict with TTL support for auto-expiring caches'
arch=('any')
url='https://pypi.org/project/expiring-dict'
license=('MIT')
depends=(
  python-sortedcontainers
)
makedepends=(
  python-build
  python-setuptools
  python-installer
  python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
        "https://github.com/dparker2/py-expiring-dict/raw/master/LICENSE"
)
sha512sums=('b5985e8b68845bfce9106406d6d335a5fa1d75898a7aa56d311d3cf5d1d2429818ec5a45072cd97a8efdcd8b3533eb8febe0debce2b7c1ad06de1143de6ade26'
            '10febcc48b9f8d7210144cf00edbac8b82482f7ebefb0a1af05125fb3672acff765499f1627f9b80afe24cc926751b104e205b48a414c92c28d9c2d2b7c99814')

build() {
  cd "${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: