wok-current view python-pytest/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | 27cfc8276927 |
children | fe96e9130c3b |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pytest"
4 VERSION="4.6.9" # last version for Python 2
5 CATEGORY="development"
6 SHORT_DESC="A simple powerful testing with Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.python.org/pypi/pytest"
11 SOURCE="pytest"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python-dev python-setuptools"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|setuptools-scm|setuptools|' setup.py
30 python setup.py build &&
31 python setup.py install --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 }