00a243bee3428dec90e6620c77646912ac092236
[feed/packages.git] / lang / python / python-setuptools-rust / Makefile
1 #
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-setuptools-rust
11 PKG_VERSION:=1.7.0
12 PKG_RELEASE:=2
13
14 PYPI_NAME:=setuptools-rust
15 PKG_HASH:=c7100999948235a38ae7e555fe199aa66c253dc384b125f5d85473bf81eae3a3
16
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE
19 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21 PKG_HOST_ONLY:=1
22 HOST_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 python-typing-extensions/host \
30 rust/host
31
32 include ../pypi.mk
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/host-build.mk
35 include ../python3-package.mk
36 include ../python3-host-build.mk
37
38 define Package/python3-setuptools-rust
39 SUBMENU:=Python
40 SECTION:=lang
41 CATEGORY:=Languages
42 TITLE:=Setuptools Rust extension plugin
43 URL:=https://github.com/PyO3/setuptools-rust
44 DEPENDS:= \
45 +python3-light \
46 +python3-logging \
47 +python3-semantic-version \
48 +python3-setuptools \
49 +python3-typing-extensions \
50 +rust
51 BUILDONLY:=1
52 endef
53
54 define Package/python3-setuptools-rust/description
55 setuptools-rust is a plugin for setuptools to build Rust Python
56 extensions implemented with PyO3 or rust-cpython.
57 endef
58
59 $(eval $(call Py3Package,python3-setuptools-rust))
60 $(eval $(call BuildPackage,python3-setuptools-rust))
61 $(eval $(call BuildPackage,python3-setuptools-rust-src))
62 $(eval $(call HostBuild))