diff options
author | Alan | 2021-12-24 21:22:14 +0000 |
---|---|---|
committer | Alan | 2021-12-24 21:22:14 +0000 |
commit | bb8bb9340d9d59bae963bd0eefccd4607fd89af2 (patch) | |
tree | a143d161e81f65331f72cc1760f12f6db60fa778 | |
download | aur-python-piecash.tar.gz |
initial commit of files for new package
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c37872a46a3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = python-piecash + pkgdesc = A Python library providing a simple and pythonic interface to GnuCash files stored in SQL. + pkgver = 1.2.0 + pkgrel = 1 + url = https://pypi.org/project/piecash/ + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-runner + makedepends = python-setuptools + depends = python + depends = python-sqlalchemy1.3 + depends = python-sqlalchemy-utils + depends = python-pytz + depends = python-tzlocal + depends = python-click + optdepends = gnucash: to create, view and edit GnuCash files + optdepends = python-pandas: view data in Pandas DataFrame + optdepends = python-psycopg2: postgresql support + optdepends = python-pymysql: MySQL support + optdepends = python-requests: retrieve quotes/prices from Yahoo Finance + source = https://files.pythonhosted.org/packages/source/p/piecash/piecash-1.2.0.tar.gz + sha256sums = 89639f0661d492242783f39c8d147ea45c321dc4111f93eca2979f070f5f176d + +pkgname = python-piecash diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4cbeccc0746f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: bunburya (dev at bunburya dot eu)) +pkgname='python-piecash' +_name=${pkgname#python-} +pkgver=1.2.0 +pkgrel=1 +pkgdesc="A Python library providing a simple and pythonic interface to GnuCash files stored in SQL." +arch=('any') +url="https://pypi.org/project/piecash/" +license=('MIT') +depends=( + 'python' + 'python-sqlalchemy1.3' + 'python-sqlalchemy-utils' + 'python-pytz' + 'python-tzlocal' + 'python-click' +) +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-pytest-runner') +optdepends=( + 'gnucash: to create, view and edit GnuCash files' + 'python-pandas: view data in Pandas DataFrame' + 'python-psycopg2: postgresql support' + 'python-pymysql: MySQL support' + 'python-requests: retrieve quotes/prices from Yahoo Finance' +) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('89639f0661d492242783f39c8d147ea45c321dc4111f93eca2979f070f5f176d') + +check() { + cd "$_name-$pkgver" + python setup.py pytest +} + +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |