diff --git a/srcpkgs/python-nose/patches/setup.py.patch b/srcpkgs/python-nose/patches/setup.py.patch new file mode 100644 index 00000000000..617ce52951e --- /dev/null +++ b/srcpkgs/python-nose/patches/setup.py.patch @@ -0,0 +1,18 @@ +--- setup.py.orig ++++ setup.py +@@ -30,7 +30,6 @@ try: + entry_points = { + 'console_scripts': [ + 'nosetests = nose:run_exit', +- 'nosetests%s = nose:run_exit' % py_vers_tag, + ], + 'distutils.commands': [ + ' nosetests = nose.commands:nosetests', +@@ -106,7 +105,6 @@ setup( + license = 'GNU LGPL', + keywords = 'test unittest doctest automatic discovery', + url = 'http://readthedocs.org/docs/nose/', +- data_files = [('man/man1', ['nosetests.1'])], + package_data = {'': ['*.txt', + 'examples/*.py', + 'examples/*/*.py']}, diff --git a/srcpkgs/python-nose/template b/srcpkgs/python-nose/template new file mode 100644 index 00000000000..de40a23fc3d --- /dev/null +++ b/srcpkgs/python-nose/template @@ -0,0 +1,30 @@ +# Template file for 'python-nose' +pkgname=python-nose +version=1.3.7 +revision=2 +noarch=yes +wrksrc="nose-${version}" +build_style=python-module +pycompile_modules="nose" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools" +short_desc="The nicer testing for Python2" +maintainer="maxice8 " +license="LGPL-2.1-or-later" +homepage="https://github.com/nose-devs/nose" +#changelog="https://raw.githubusercontent.com/nose-devs/nose/master/CHANGELOG" +distfiles="${PYPI_SITE}/n/nose/nose-${version}.tar.gz" +checksum=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98 +alternatives="nose:nosetests:/usr/bin/nosetests2" + +python3-nose_package() { + noarch=yes + pycompile_module="nose" + depends="python3-setuptools" + short_desc="${short_desc/Python2/Python3}" + alternatives="nose:nosetests:/usr/bin/nosetests3" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-nose b/srcpkgs/python3-nose new file mode 120000 index 00000000000..32467a70a1e --- /dev/null +++ b/srcpkgs/python3-nose @@ -0,0 +1 @@ +python-nose \ No newline at end of file diff --git a/srcpkgs/python3-nose/template b/srcpkgs/python3-nose/template deleted file mode 100644 index abb4b978748..00000000000 --- a/srcpkgs/python3-nose/template +++ /dev/null @@ -1,21 +0,0 @@ -# Template file for 'python3-nose' -pkgname=python3-nose -version=1.3.7 -revision=1 -wrksrc="nose-release_${version}" -build_style=python3-module -pycompile_modules="nose" -hostmakedepends="python3-setuptools" -depends="python3" -short_desc="Nose is nicer testing for python3" -maintainer="maxice8 " -license="LGPL-2.1-or-later" -homepage="https://github.com/nose-devs/nose" -#changelog="https://raw.githubusercontent.com/nose-devs/nose/master/CHANGELOG" -distfiles="https://github.com/nose-devs/nose/archive/release_${version}.tar.gz" -checksum=ab1ee7744662c5bf58a510ae46d879ebe140c3e40d6871c09b36b24b6a480b39 - -pre_build() { - # fix manpage location - sed -i 's|man/man1|share/man/man1|g' setup.py -}