blob: 9a78393f677ad65eba8ce2abadfd500beebfffc3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2023 Jeffery To
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-semantic-version
11PKG_VERSION:=2.10.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=semantic-version
15PYPI_SOURCE_NAME:=semantic_version
16PKG_HASH:=bdabb6d336998cbb378d4b9db3a4b56a1e3235701dc05ea2690d9a997ed5041c
17
18PKG_LICENSE:=BSD-2-Clause
19PKG_LICENSE_FILES:=LICENSE
20PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22PKG_HOST_ONLY:=1
23HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
24
25include ../pypi.mk
26include $(INCLUDE_DIR)/package.mk
27include $(INCLUDE_DIR)/host-build.mk
28include ../python3-package.mk
29include ../python3-host-build.mk
30
31define Package/python3-semantic-version
32 SUBMENU:=Python
33 SECTION:=lang
34 CATEGORY:=Languages
35 TITLE:=Library implementing the 'SemVer' scheme
36 URL:=https://github.com/rbarrois/python-semanticversion
37 DEPENDS:=+python3-light
38 BUILDONLY:=1
39endef
40
41define Package/python3-semantic-version/description
42This small python library provides a few tools to handle SemVer in
43Python. It follows strictly the 2.0.0 version of the SemVer scheme.
44endef
45
46$(eval $(call Py3Package,python3-semantic-version))
47$(eval $(call BuildPackage,python3-semantic-version))
48$(eval $(call BuildPackage,python3-semantic-version-src))
49$(eval $(call HostBuild))