b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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.7 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=cryptography |
| 15 | PKG_HASH:=13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc |
| 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)) |