mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
31 lines
934 B
Text
31 lines
934 B
Text
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
pkgname=py3-dotenv
|
|
_pyname=python-dotenv
|
|
pkgver=0.21.1
|
|
pkgrel=0
|
|
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="
|
|
8e9a2c7ff3b053ddbd81ce44aeed66310ce446377e17b5384061f02d90ce3f1130212e3cde14a780488d12c3227d19a0124628167978f2b6a6dbbc0d2ee1041c py3-dotenv-0.21.1.tar.gz
|
|
"
|