diff --git a/srcpkgs/python-pytest-capturelog/files/LICENSE.txt b/srcpkgs/python-pytest-capturelog/files/LICENSE.txt new file mode 100644 index 00000000000..5cca5a1b8c9 --- /dev/null +++ b/srcpkgs/python-pytest-capturelog/files/LICENSE.txt @@ -0,0 +1,22 @@ +The MIT License + +Copyright (c) 2010 Meme Dough + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/srcpkgs/python-pytest-capturelog/template b/srcpkgs/python-pytest-capturelog/template new file mode 100644 index 00000000000..5ddb77e3d9c --- /dev/null +++ b/srcpkgs/python-pytest-capturelog/template @@ -0,0 +1,31 @@ +# Template file for 'python-pytest-capturelog' +pkgname=python-pytest-capturelog +version=0.7 +revision=1 +wrksrc="${pkgname/python-/}-${version}" +build_style=python-module +pycompile_module="pytest_capturelog.py" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-py" +short_desc="Plugin for py.test to capture log messages for Python2" +maintainer="maxice8 " +license="MIT" +homepage="http://bitbucket.org/memedough/pytest-capturelog/overview" +distfiles="${PYPI_SITE}/p/${pkgname/python-/}/${pkgname/python-/}-${version}.tar.gz" +checksum=b6e8d5189b39462109c2188e6b512d6cc7e66d62bb5be65389ed50e96d22000d +noarch=yes + +post_install() { + vlicense "${FILESDIR}/LICENSE.txt" +} + +python3-pytest-capturelog_package() { + noarch=yes + pycompile_module="pytest_capturelog.py" + short_desc="${short_desc/Python2/Python3}" + depends="python3-py" + pkg_install() { + vmove usr/lib/python3* + vlicense "${FILESDIR}/LICENSE.txt" + } +} diff --git a/srcpkgs/python3-pytest-capturelog b/srcpkgs/python3-pytest-capturelog new file mode 120000 index 00000000000..e6b907ead3f --- /dev/null +++ b/srcpkgs/python3-pytest-capturelog @@ -0,0 +1 @@ +python-pytest-capturelog \ No newline at end of file