Re: git: a4c87a5576a9 - main - devel/py-libevdev: add new port
Date: Mon, 17 Feb 2025 11:31:39 UTC
On Mon, Feb 17, 2025 at 6:04 AM Jan Beich <jbeich@freebsd.org> wrote:
>
> Charlie Li <vishwin@freebsd.org> writes:
>
> > Needs LIB_DEPENDS on devel/libevdev.
>
> Done in bc369d345016.
>
> > Also the project includes a pytest testing framework so
> > USE_PYTHON=pytest should be added.
>
> Leaving up to the maintainer:
> - devel/libevdev has -Dtests=disabled, so why enable here?
> - /dev/uinput fails inside jail to create synthetic /dev/input/*
> - Some tests fail for other reasons e.g., missing linsysfs(4) node
> - USES=pytest doesn't work for me WITH_TESTING=yes (d7700ff7fde6)
The python tests are separate. USES=pytest is not valid, it should be
USE_PYTHON=pytest. The tests work fine for me.
This port should also be built with USE_PYTHON=pep517, not distutils.
To make this happen, the port also needs:
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
- Jason