bee53fd796d92960ddfa6a99389e77500e114c27
[feed/packages.git] / lang / python / python-cryptography / Makefile
1 #
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-cryptography
11 PKG_VERSION:=41.0.5
12 PKG_RELEASE:=1
13
14 PYPI_NAME:=cryptography
15 PKG_HASH:=392cb88b597247177172e02da6b7a63deeff1937fa6fec3bbf902ebd75d97ec7
16
17 PKG_LICENSE:=Apache-2.0 BSD-3-Clause
18 PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
19 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20 PKG_CPE_ID:=cpe:/a:cryptography_project:cryptography
21
22 PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-setuptools-rust/host
23
24 include ../pypi.mk
25 include $(INCLUDE_DIR)/package.mk
26 include ../python3-package.mk
27
28 define 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)
42 endef
43
44 define Package/python3-cryptography/description
45 cryptography is a package which provides cryptographic recipes and
46 primitives to Python developers. Our goal is for it to be your
47 "cryptographic standard library".
48 endef
49
50 $(eval $(call Py3Package,python3-cryptography))
51 $(eval $(call BuildPackage,python3-cryptography))
52 $(eval $(call BuildPackage,python3-cryptography-src))