summaryrefslogtreecommitdiff
path: root/community/py3-dotenv/APKBUILD
blob: f7e5f1488f730e178133dab47541c01ea745ca2e (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
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=py3-dotenv
_pyname=python-dotenv
pkgver=0.21.0
pkgrel=1
pkgdesc="Reads the key-value pair from .env file and adds them to environment variable."
url="https://github.com/theskumar/python-dotenv"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/theskumar/$_pyname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# running tests requires testing/py3-sh
	PYTHONPATH=build/lib python3 -c "from dotenv import load_dotenv"
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
4e408010f24fb53dfb5474eba0283a77bae17b2c676c2a5116b3c65d5324dacf1950f799f0157e8939aa3ecf8a22cd2bfac51bcbd5e1c9de1e05c5a5d948ac44  py3-dotenv-0.21.0.tar.gz
"