From f6c34cd8115a77d1e3e6a7144c2d03b2e90e19b4 Mon Sep 17 00:00:00 2001 From: xaltsc <41400742+xaltsc@users.noreply.github.com> Date: Sat, 6 Apr 2019 02:46:20 +0200 Subject: [PATCH] New package: python-habanero-0.6.2 closes #10627 --- srcpkgs/python-habanero/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-habanero | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-habanero/template create mode 120000 srcpkgs/python3-habanero diff --git a/srcpkgs/python-habanero/template b/srcpkgs/python-habanero/template new file mode 100644 index 00000000000..86d66befc3d --- /dev/null +++ b/srcpkgs/python-habanero/template @@ -0,0 +1,31 @@ +# Template file for 'python-habanero' +pkgname=python-habanero +version=0.6.2 +revision=1 +archs=noarch +wrksrc="habanero-${version}" +build_style=python-module +pycompile_module="habanero" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-requests" +short_desc="Python2 low level client for Crossref Search API" +maintainer="xaltsc " +license="MIT" +homepage="https://github.com/sckott/habanero" +distfiles="${PYPI_SITE}/h/habanero/habanero-${version}.tar.gz" +checksum=806c74298e0fb8a838514307ef3eca73685a968b8efd00e5dfe1ea604200f59d + +post_install() { + vlicense docs/license.rst +} + +python3-habanero_package() { + archs=noarch + pycompile_module="habanero" + depends="python3-requests" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense docs/license.rst + } +} diff --git a/srcpkgs/python3-habanero b/srcpkgs/python3-habanero new file mode 120000 index 00000000000..947f4479622 --- /dev/null +++ b/srcpkgs/python3-habanero @@ -0,0 +1 @@ +python-habanero \ No newline at end of file