package/python-humanfriendly: new package

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Romain Naour <romain.naour@smile.fr>
Cc: James Hilliard <james.hilliard1@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
[Julien:
 - add DEVELOPERS entry
 - fix test class name
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Yann E. MORIN
2026-03-16 09:08:53 +01:00
committed by Julien Olivain
parent 49c1e1181f
commit e190962f3e
7 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import humanfriendly as hf
h_size = "16MiB"
b_size = hf.parse_size(h_size)
assert b_size == 16*1024*1024

View File

@@ -0,0 +1,12 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3HumanFriendly(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON3_CURSES=y
BR2_PACKAGE_PYTHON_HUMANFRIENDLY=y
"""
sample_scripts = ["tests/package/sample_python_humanfriendly.py"]