summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52e753878620ae981534d528a1595e343c294322 (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
# Maintainer: Matt Quintanilla <matt @ matt quintanilla . xyz>
# Contributor: Kewl <xrjy@nygb.rh.bet(rot13)>

pkgname=python-pandas_market_calendars-git
_pkgname=pandas_market_calendars-git
pkgver=r872.790d848
pkgrel=2
pkgdesc="Market and exchange trading calendars for pandas"
arch=('any')
depends=('python-pytz' 'python-pandas' 'python-exchange_calendars' 'python-dateutil' 'python')
makedepends=('python-setuptools' 'python-build' 'python-installer')
url="https://github.com/rsheftel/pandas_market_calendars"
license=('MIT')
provides=('python-pandas_market_calendars')
conflicts=('python-pandas_market_calendars')
source=(${pkgname}::git+${url})
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}



build() {
  cd "$pkgname"
  python -m build --wheel --no-isolation
}
package() {
  cd "$srcdir/$pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}