From 813095a320810c583d33e415dbf1203c36492e14 Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Wed, 18 Feb 2026 16:08:09 +0100 Subject: [PATCH] build: added python-semver package --- config/{python3-nethsec.conf => python.conf} | 1 + packages/python-semver/Makefile | 34 ++++++++++++++++++++ 2 files changed, 35 insertions(+) rename config/{python3-nethsec.conf => python.conf} (50%) create mode 100644 packages/python-semver/Makefile diff --git a/config/python3-nethsec.conf b/config/python.conf similarity index 50% rename from config/python3-nethsec.conf rename to config/python.conf index 7622b9e88..567ca8be2 100644 --- a/config/python3-nethsec.conf +++ b/config/python.conf @@ -1 +1,2 @@ CONFIG_PACKAGE_python3-nethsec=y +CONFIG_PACKAGE_python3-semver=y diff --git a/packages/python-semver/Makefile b/packages/python-semver/Makefile new file mode 100644 index 000000000..af1da7c88 --- /dev/null +++ b/packages/python-semver/Makefile @@ -0,0 +1,34 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-semver +PKG_VERSION:=2.13.0 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Bailetti Tommaso +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE.txt + +PYPI_NAME:=semver +PKG_HASH:=fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f + +include $(TOPDIR)/feeds/packages/lang/python/pypi.mk +include $(INCLUDE_DIR)/package.mk +include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk + +define Package/python3-semver + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Python library for semantic versioning + URL:=https://github.com/python-semver/python-semver + DEPENDS:=+python3-light +endef + +define Package/python3-semver/description +Python library for semantic versioning. Simplifies parsing, comparing, +and manipulating version numbers following the MAJOR.MINOR.PATCH style. +endef + +$(eval $(call Py3Package,python3-semver)) +$(eval $(call BuildPackage,python3-semver)) +$(eval $(call BuildPackage,python3-semver-src))