blob: 6726a77768d63b4ff2f9b9f77d8744b76ced0dd4 [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-hatch-vcs
11PKG_VERSION:=0.4.0
12PKG_RELEASE:=1
13
14PYPI_NAME:=hatch-vcs
15PYPI_SOURCE_NAME:=hatch_vcs
16PKG_HASH:=093810748fe01db0d451fabcf2c1ac2688caefd232d4ede967090b1c1b07d9f7
17
18PKG_LICENSE:=MIT
19PKG_LICENSE_FILES:=LICENSE.txt
20PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
21
22PKG_HOST_ONLY:=1
23HOST_BUILD_DEPENDS:= \
24 python3/host \
25 python-build/host \
26 python-installer/host \
27 python-hatchling/host \
28 python-setuptools-scm/host
29
30include ../pypi.mk
31include $(INCLUDE_DIR)/package.mk
32include $(INCLUDE_DIR)/host-build.mk
33include ../python3-package.mk
34include ../python3-host-build.mk
35
36define Package/python3-hatch-vcs
37 SECTION:=lang
38 CATEGORY:=Languages
39 SUBMENU:=Python
40 TITLE:=Hatch plugin for versioning with your preferred VCS
41 URL:=https://github.com/ofek/hatch-vcs
42 DEPENDS:=+python3-light +python3-hatchling +python3-setuptools-scm
43 BUILDONLY:=1
44endef
45
46define Package/python3-hatch-vcs/description
47This provides a plugin for Hatch that uses your preferred version
48control system (like Git) to determine project versions.
49endef
50
51$(eval $(call Py3Package,python3-hatch-vcs))
52$(eval $(call BuildPackage,python3-hatch-vcs))
53$(eval $(call BuildPackage,python3-hatch-vcs-src))
54$(eval $(call HostBuild))