From 2add559e506e0af92beb2841c07db038ea48127a Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Sun, 5 Nov 2023 13:25:54 -0700 Subject: [PATCH] package/python-kmod: new package This package is currently used in Fedora39 to provide python bindings for kmod, and it is Python 3.12.0 compatible. Signed-off-by: Adam Duskett [yann.morin.1998@free.fr: LGPL in in COPYING.LESSER] Signed-off-by: Yann E. MORIN --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-kmod/Config.in | 12 ++++++++++++ package/python-kmod/python-kmod.hash | 3 +++ package/python-kmod/python-kmod.mk | 16 ++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/python-kmod/Config.in create mode 100644 package/python-kmod/python-kmod.hash create mode 100644 package/python-kmod/python-kmod.mk diff --git a/DEVELOPERS b/DEVELOPERS index 12257fae8c..d80931e84a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -37,6 +37,7 @@ F: package/flutter-engine/ F: package/flutter-gallery/ F: package/flutter-pi/ F: package/flutter-sdk-bin/ +F: package/python-kmod/ F: support/testing/tests/package/test_firewalld.py F: support/testing/tests/package/test_flutter.py diff --git a/package/Config.in b/package/Config.in index ce46d30fed..56e793ceae 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1135,6 +1135,7 @@ menu "External python modules" source "package/python-jsonschema/Config.in" source "package/python-keyring/Config.in" source "package/python-kiwisolver/Config.in" + source "package/python-kmod/Config.in" source "package/python-lark/Config.in" source "package/python-libconfig/Config.in" source "package/python-libevdev/Config.in" diff --git a/package/python-kmod/Config.in b/package/python-kmod/Config.in new file mode 100644 index 0000000000..244baee3a0 --- /dev/null +++ b/package/python-kmod/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_PYTHON_KMOD + bool "python-kmod" + depends on !BR2_STATIC_LIBS # kmod + select BR2_PACKAGE_HOST_PYTHON_CYTHON + select BR2_PACKAGE_KMOD + help + Python binding for kmod + + https://github.com/maurizio-lombardi/python-kmod + +comment "python-kmod needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/python-kmod/python-kmod.hash b/package/python-kmod/python-kmod.hash new file mode 100644 index 0000000000..b838914c19 --- /dev/null +++ b/package/python-kmod/python-kmod.hash @@ -0,0 +1,3 @@ +# Locally computed sha256 checksums +sha256 0100ff27b7030a73e68ec07829d6123f412ce195dc761b954c92a38d18ba8539 python-kmod-0.9.2.tar.gz +sha256 1a136f227d8318af7d2320dad880a9f1a057c08cff044b545bb33430ab9c6860 COPYING.LESSER diff --git a/package/python-kmod/python-kmod.mk b/package/python-kmod/python-kmod.mk new file mode 100644 index 0000000000..337a61491f --- /dev/null +++ b/package/python-kmod/python-kmod.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# python-kmod +# +################################################################################ + +# The python-kmod package listed at https://pypi.org/project/kmod/#description +# is not the same as the one listed below. +PYTHON_KMOD_VERSION = 0.9.2 +PYTHON_KMOD_SITE = $(call github,maurizio-lombardi,python-kmod,v$(PYTHON_KMOD_VERSION)) +PYTHON_KMOD_SETUP_TYPE = setuptools +PYTHON_KMOD_LICENSE = LGPL-2.1+ +PYTHON_KMOD_LICENSE_FILES = COPYING.LESSER +PYTHON_KMOD_DEPENDENCIES = host-python-cython kmod + +$(eval $(python-package))