blob: c8b1950d2e21f7e4f9d3f3845767f5cbef909361 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2015-2016, 2018-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-cryptography
11PKG_VERSION:=41.0.7
12PKG_RELEASE:=1
13
14PYPI_NAME:=cryptography
15PKG_HASH:=13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc
16
17PKG_LICENSE:=Apache-2.0 BSD-3-Clause
18PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20PKG_CPE_ID:=cpe:/a:cryptography_project:cryptography
21
22PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-setuptools-rust/host
23
24include ../pypi.mk
25include $(INCLUDE_DIR)/package.mk
26include ../python3-package.mk
27
28define Package/python3-cryptography
29 SECTION:=lang
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 TITLE:=Cryptographic recipes and primitives
33 URL:=https://github.com/pyca/cryptography
34 DEPENDS:= \
35 +libopenssl \
36 +libopenssl-legacy \
37 +python3-light \
38 +python3-email \
39 +python3-urllib \
40 +python3-cffi \
41 $(RUST_ARCH_DEPENDS)
42endef
43
44define Package/python3-cryptography/description
45cryptography is a package which provides cryptographic recipes and
46primitives to Python developers. Our goal is for it to be your
47"cryptographic standard library".
48endef
49
50$(eval $(call Py3Package,python3-cryptography))
51$(eval $(call BuildPackage,python3-cryptography))
52$(eval $(call BuildPackage,python3-cryptography-src))