aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-lockfile
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-16 02:48:47 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-02 01:43:47 +0000
commitaad2afe051973fa7fd6f4f9b83703c09445ff17c (patch)
tree4266144bb0c3984f784b0dd910d33fa98a72c353 /community/py3-lockfile
parentaad758e364da9a69d0d519b619cc6eb2c7d150f8 (diff)
downloadaports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.bz2
aports-aad2afe051973fa7fd6f4f9b83703c09445ff17c.tar.xz
community/py3-*: move from main/ and modernize
Diffstat (limited to 'community/py3-lockfile')
-rw-r--r--community/py3-lockfile/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py3-lockfile/APKBUILD b/community/py3-lockfile/APKBUILD
new file mode 100644
index 0000000000..c18384937a
--- /dev/null
+++ b/community/py3-lockfile/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-lockfile
+_pkgname=lockfile
+pkgver=0.12.2
+pkgrel=3
+pkgdesc="A Python file locking module"
+url="https://github.com/openstack/pylockfile"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-pbr py3-setuptools"
+checkdepends="py3-nose"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+replaces=py-lockfile # Backwards compatibility
+provides=py-lockfile=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ nosetests
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="67b7d651d7e963a497c2604912c61eed90181cdd09c744a0ceaa26e6bbe09d1a871ce48be3949b7da7ea6b366b15492c8c8de589edeca2641ca5e6cb3804df07 lockfile-0.12.2.tar.gz"