mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-holidays
|
|
pkgver=0.24
|
|
pkgrel=0
|
|
pkgdesc="Generate and work with holidays in Python"
|
|
url="https://github.com/dr-prodigy/python-holidays"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-convertdate
|
|
py3-dateutil
|
|
py3-hijri-converter
|
|
py3-korean-lunar-calendar
|
|
python3
|
|
"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-lang $pkgname-pyc"
|
|
source="https://pypi.python.org/packages/source/h/holidays/holidays-$pkgver.tar.gz"
|
|
builddir="$srcdir/holidays-$pkgver"
|
|
# AttributeError: 'TestAllInSameYear' object has no attribute '_feedErrorsToResult'
|
|
options="!check"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
lang() {
|
|
pkgdesc="Languages for package $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel lang"
|
|
|
|
amove usr/lib/python3*/site-packages/holidays/locale
|
|
}
|
|
|
|
sha512sums="
|
|
1b7540d8fb2d970bb4ab7ed521b821deaad7c819af53e92cdd4cbcf604a68f70b71797fc88d0e9018ccdd00d7f175e63c444079ac3523605a884edb25af4a6b6 holidays-0.24.tar.gz
|
|
"
|