From 1f06e0eb60f5522b0fe349adb74c07d13a88e041 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 7 Nov 2017 04:04:11 -0200 Subject: [PATCH] New package: python-nose2-0.7.0. --- srcpkgs/python-nose2/template | 34 ++++++++++++++++++++++++++++++++++ srcpkgs/python3-nose2 | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-nose2/template create mode 120000 srcpkgs/python3-nose2 diff --git a/srcpkgs/python-nose2/template b/srcpkgs/python-nose2/template new file mode 100644 index 00000000000..61b68982c94 --- /dev/null +++ b/srcpkgs/python-nose2/template @@ -0,0 +1,34 @@ +# Template file for 'python-nose2' +pkgname=python-nose2 +version=0.7.0 +revision=1 +wrksrc="${pkgname/python-//}-${version}" +build_style=python-module +pycompile_module="nose2" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools python-coverage python-six python-mock" +short_desc="Nose2 is the next generation of nicer testing for Python2" +maintainer="maxice8 " +license="2-Clause-BSD" +homepage="https://github.com/nose-devs/nose2" +distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz" +checksum=4ba3ee2a7efc1d172d60f1f1cc41c78e92414db31ff42468996d4f9a3f3fc75d +alternatives="python-nose2:nosetest:/usr/bin/nose2-2.7" +noarch=yes + +post_install() { + vlicense license.txt +} + +python3-nose2_package() { + noarch=yes + pycompile_Module="nose2" + short_desc="${short_desc/Python2/Python3}" + depends="python3-setuptools python3-coverage python3-six" + alternatives="python-nose2:nosetest:/usr/bin/nose2-3.6" + pkg_install() { + vmove "usr/bin/*3*" + vmove usr/lib/python3* + vlicense license.txt + } +} diff --git a/srcpkgs/python3-nose2 b/srcpkgs/python3-nose2 new file mode 120000 index 00000000000..28ad1fd5002 --- /dev/null +++ b/srcpkgs/python3-nose2 @@ -0,0 +1 @@ +python-nose2 \ No newline at end of file