diff --git a/srcpkgs/python-docker/patches/no-pip.patch b/srcpkgs/python-docker/patches/no-pip.patch new file mode 100644 index 00000000000..2cfdb33412b --- /dev/null +++ b/srcpkgs/python-docker/patches/no-pip.patch @@ -0,0 +1,20 @@ +--- setup.py.orig 2017-01-20 03:12:21.000000000 +0100 ++++ setup.py 2017-04-21 12:39:13.784172057 +0200 +@@ -5,17 +5,8 @@ + import os + import sys + +-import pip +- + from setuptools import setup, find_packages + +-if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]: +- print( +- 'ERROR: "docker-py" needs to be uninstalled before installing this' +- ' package:\npip uninstall docker-py', file=sys.stderr +- ) +- sys.exit(1) +- + ROOT_DIR = os.path.dirname(__file__) + SOURCE_DIR = os.path.join(ROOT_DIR) + diff --git a/srcpkgs/python-docker/template b/srcpkgs/python-docker/template new file mode 100644 index 00000000000..d2299424183 --- /dev/null +++ b/srcpkgs/python-docker/template @@ -0,0 +1,29 @@ +# Template file for 'python-docker' +pkgname=python-docker +version=2.2.1 +revision=1 +noarch=yes +wrksrc="docker-${version}" +build_style=python-module +pycompile_module="docker" +replaces="python-docker-py>=0" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-requests python-six python-websocket-client python-ipaddress + python-backports.ssl_match_hostname python-docker-pycreds" +short_desc="Python2 library for the Docker Engine API" +maintainer="Sergi Alvarez " +homepage="https://github.com/docker/docker-py" +license="Apache-2.0" +distfiles="${PYPI_SITE}/d/docker/docker-${version}.tar.gz" +checksum=a67de803a8b3a9ef5adb9ce881feb74ec33d373a4f6d6cbb1a26cad03e809ae2 + +python3-docker_package() { + noarch=yes + pycompile_module="docker" + replaces="python3-docker-py>=0" + depends="python3-requests python3-six python3-websocket-client python3-docker-pycreds" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-docker b/srcpkgs/python3-docker new file mode 120000 index 00000000000..e68cef56d8a --- /dev/null +++ b/srcpkgs/python3-docker @@ -0,0 +1 @@ +python-docker \ No newline at end of file