I want to include the Python library validators in my OpenEmbedded build. I am working with the Kirkstone release and the latest version of validators is 0.22.0. There is no recpipe, so I added it myself:
inherit pypi
SUMMARY = "Python Data Validation for Humans™"
HOMEPAGE = "https://python-validators.github.io/validators"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fcf28bd09a60e145c3171c531b9e677d"
SRC_URI[sha256sum] = "77b2689b172eeeb600d9605ab86194641670cdb73b60afd577142a9397873370"
BBCLASSEXTEND = "native nativesdk"
The build runs through, but the package is not correctly installed. In /usr/lib/python3.10/site-packages I get the folder UNKNOWN-0.0.0.dist-info, which contains some meta information including the correct license file, but no Python files.
I played around inheriting various Python build system classes, but no success. I noticed that validatoirs' pyproject.toml file mentions setuptools version 61:
[build-system]
requires = ["setuptools>=61"]
While meta-oe-core only contains version 59.5.0 (python3-setuptools_59.5.0.bb).
You didn’t actually inherit a class to build the code. Try
setuptools_build_meta.