From c04f91c820c82d0097795ad665df474202d5ec6a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 6 Aug 2018 20:13:19 +0200 Subject: [PATCH] New package: python-PyHamcrest-1.9.0 --- srcpkgs/python-PyHamcrest/template | 35 ++++++++++++++++++++++++++++++ srcpkgs/python3-PyHamcrest | 1 + 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/python-PyHamcrest/template create mode 120000 srcpkgs/python3-PyHamcrest diff --git a/srcpkgs/python-PyHamcrest/template b/srcpkgs/python-PyHamcrest/template new file mode 100644 index 0000000000..2ae34db3f7 --- /dev/null +++ b/srcpkgs/python-PyHamcrest/template @@ -0,0 +1,35 @@ +# Template file for 'python-PyHamcrest' +pkgname=python-PyHamcrest +version=1.9.0 +revision=1 +noarch=yes +wrksrc="PyHamcrest-${version}" +build_style=python-module +pycompile_module="hamcrest" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-six" +short_desc="Hamcrest framework for matcher objects (Python2)" +maintainer="Alessio Sergi " +homepage="https://github.com/hamcrest/PyHamcrest" +license="BSD-3-Clause" +distfiles="${PYPI_SITE}/P/PyHamcrest/PyHamcrest-${version}.tar.gz" +checksum=8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd + +pre_build() { + # drop setuptools from runtime requires + sed -i "/install_requires=/s|'setuptools',||" setup.py +} +post_install() { + vlicense LICENSE.txt +} + +python3-PyHamcrest_package() { + noarch=yes + depends="python3-six" + pycompile_module="hamcrest" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-PyHamcrest b/srcpkgs/python3-PyHamcrest new file mode 120000 index 0000000000..88738b03cd --- /dev/null +++ b/srcpkgs/python3-PyHamcrest @@ -0,0 +1 @@ +python-PyHamcrest \ No newline at end of file