blob: 7fe77ff7ad70a7c6b1f4c37c9c3c70289aa3c572 [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-setuptools-rust
11PKG_VERSION:=1.8.1
12PKG_RELEASE:=1
13
14PYPI_NAME:=setuptools-rust
15PKG_HASH:=94b1dd5d5308b3138d5b933c3a2b55e6d6927d1a22632e509fcea9ddd0f7e486
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21PKG_HOST_ONLY:=1
22HOST_BUILD_DEPENDS:= \
23 python3/host \
24 python-build/host \
25 python-installer/host \
26 python-wheel/host \
27 python-setuptools-scm/host \
28 python-semantic-version/host \
29 rust/host
30
31include ../pypi.mk
32include $(INCLUDE_DIR)/package.mk
33include $(INCLUDE_DIR)/host-build.mk
34include ../python3-package.mk
35include ../python3-host-build.mk
36
37define Package/python3-setuptools-rust
38 SUBMENU:=Python
39 SECTION:=lang
40 CATEGORY:=Languages
41 TITLE:=Setuptools Rust extension plugin
42 URL:=https://github.com/PyO3/setuptools-rust
43 DEPENDS:= \
44 +python3-light \
45 +python3-logging \
46 +python3-semantic-version \
47 +python3-setuptools \
48 +rust
49 BUILDONLY:=1
50endef
51
52define Package/python3-setuptools-rust/description
53setuptools-rust is a plugin for setuptools to build Rust Python
54extensions implemented with PyO3 or rust-cpython.
55endef
56
57$(eval $(call Py3Package,python3-setuptools-rust))
58$(eval $(call BuildPackage,python3-setuptools-rust))
59$(eval $(call BuildPackage,python3-setuptools-rust-src))
60$(eval $(call HostBuild))