diff --git a/srcpkgs/python-pytest/template b/srcpkgs/python-pytest/template new file mode 100644 index 00000000000..d79ad58f90e --- /dev/null +++ b/srcpkgs/python-pytest/template @@ -0,0 +1,34 @@ +# Template file for 'python-pytest' +pkgname=python-pytest +version=3.2.3 +revision=1 +wrksrc="${pkgname/python-//}-${version}" +build_style=python-module +pycompile_module="pytest" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools python-py" +short_desc="Pytest: simple powerful testing with Python2" +maintainer="maxice8 " +license="MIT" +homepage="https://docs.pytest.org/en/latest/" +distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz" +checksum=27fa6617efc2869d3e969a3e75ec060375bfb28831ade8b5cdd68da3a741dc3c +alternatives="python-pytest:pytest:/usr/bin/pytest2" +noarch=yes + +post_install() { + vlicense LICENSE +} + +python3-pytest_package() { + noarch=yes + pycompile_module="pytest" + alternatives="python-pytest:pytest:/usr/bin/pytest3" + short_desc="${short_desc/Python2/Python3}" + depends="python3-setuptools python3-py" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-pytest b/srcpkgs/python3-pytest new file mode 120000 index 00000000000..83ab9de7763 --- /dev/null +++ b/srcpkgs/python3-pytest @@ -0,0 +1 @@ +python-pytest \ No newline at end of file