wok view python-humanize/receipt @ rev 25632

Up gtklife (5.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 23 14:06:29 2023 +0000 (11 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-humanize"
4 VERSION="1.0.0" # last version for Python 2
5 CATEGORY="development"
6 SHORT_DESC="python humanize functions"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/humanize/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jmoiron/humanize/archive/$VERSION.tar.gz"
14 DEPENDS="python"
15 BUILD_DEPENDS="python python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|setuptools_scm|setuptools|' setup.py
29 python setup.py install --prefix=/usr --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }