mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
python-nose: fix template
Too lazy to list all changes and fixes tbh. Note: nose 1.x is deprecated.
This commit is contained in:
parent
1805067e7c
commit
c5cb08a4ce
4 changed files with 49 additions and 21 deletions
18
srcpkgs/python-nose/patches/setup.py.patch
Normal file
18
srcpkgs/python-nose/patches/setup.py.patch
Normal file
|
@ -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']},
|
30
srcpkgs/python-nose/template
Normal file
30
srcpkgs/python-nose/template
Normal file
|
@ -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 <thinkabit.ukim@gmail.com>"
|
||||
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*
|
||||
}
|
||||
}
|
1
srcpkgs/python3-nose
Symbolic link
1
srcpkgs/python3-nose
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-nose
|
|
@ -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 <thinkabit.ukim@gmail.com>"
|
||||
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
|
||||
}
|
Loading…
Add table
Reference in a new issue