[arch-commits] Commit in python-docker/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 19:55:10 UTC 2020
Date: Monday, November 9, 2020 @ 19:55:10
Author: foutrelis
Revision: 748126
archrelease: copy trunk to community-staging-any
Added:
python-docker/repos/community-staging-any/
python-docker/repos/community-staging-any/PKGBUILD
(from rev 748125, python-docker/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-docker/repos/community-staging-any/PKGBUILD (from rev 748125, python-docker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:55:10 UTC (rev 748126)
@@ -0,0 +1,43 @@
+# Maintainer: Andrew Crerar <crerar at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Hideaki Takahashi <mymelo+aur at gmail.com>
+# Contributor: Vincent Demeester <vincent at sbr.io>
+# Contributor: Josh VanderLinden <arch at cloudlery.com>
+
+pkgname=python-docker
+pkgver=4.3.1
+pkgrel=2
+pkgdesc="A Python library for the Docker Engine API"
+arch=('any')
+url="https://github.com/docker/docker-py"
+license=("Apache")
+depends=('python-requests' 'python-six' 'python-websocket-client' 'python-docker-pycreds' 'python-paramiko')
+makedepends=('python-pip' 'python-requests' 'python-six' 'python-websocket-client'
+ 'python-docker-pycreds')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-timeout'
+ 'python-mock' 'python-coverage' 'flake8')
+provides=('python-docker-py')
+conflicts=('python-docker-py')
+replaces=('python-docker-py')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz")
+sha512sums=('f82d8681edc866e73dcc0557a2be7ccfcb68e6add3cfd034d62f9639646c5d396e8e2b29df2b42006ee92adc8b432ca6a80bf2a10b54af42f33fe5ea8ed4a912')
+
+prepare() {
+ sed -i 's/==.*$//' docker-py-"$pkgver"/{,test-}requirements.txt
+}
+
+build() {
+ cd "$srcdir"/docker-py-"$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/docker-py-"$pkgver"
+ py.test --cov=docker tests/unit
+}
+
+package() {
+ cd docker-py-"$pkgver"
+ python setup.py install -O1 --root="$pkgdir"
+}
More information about the arch-commits
mailing list