SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-attr"

# SliTaz package receipt.

PACKAGE="python-attr"
SOURCE="attr"
VERSION="0.3.1"
CATEGORY="development"
SHORT_DESC="Simple decorator to set attributes of target function or class in a DRY way"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://github.com/denis-ryzhkov/attr"
WGET_URL="https://files.pythonhosted.org/packages/de/be/ddc7f84d4e087144472a38a373d3e319f51a6faf6e5fc1ae897173675f21/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/attr version/!d;s|.*version ||;s|<.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    python setup.py build &&
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs
    cp -a $install/usr $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)