[arch-commits] Commit in python-json-config/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 23:34:20 UTC 2021
Date: Thursday, December 2, 2021 @ 23:34:20
Author: felixonmars
Revision: 1063148
archrelease: copy trunk to community-staging-any
Added:
python-json-config/repos/community-staging-any/
python-json-config/repos/community-staging-any/PKGBUILD
(from rev 1063147, python-json-config/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-json-config/repos/community-staging-any/PKGBUILD (from rev 1063147, python-json-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:34:20 UTC (rev 1063148)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-json-config
+pkgver=2.0.1
+pkgrel=4
+pkgdesc="A convenience utility for working with JSON config files with file syncing"
+url="https://github.com/bionikspoon/json_config"
+license=('MIT')
+arch=('any')
+depends=('python-future')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bionikspoon/json_config/archive/$pkgver.tar.gz")
+sha512sums=('54ad91e3ad8ba73dfb9e5180f7211646d4d24029688874d6db0de5a583515fa6a09b06156d2e4375159327bafaee622e68686a245af25dbebff5348e76a5562b')
+
+build() {
+ cd json_config-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd json_config-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd json_config-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list