1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
11 PYPI_NAME
:=$(PKG_NAME
)
12 PKG_HASH
:=45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e
14 PKG_LICENSE
:=GPL-3.0
-or-later
15 PKG_LICENSE_FILES
:=LICENSE
16 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
17 PKG_CPE_ID
:=cpe
:/a
:python-gnupg_project
:python-gnupg
20 include $(INCLUDE_DIR
)/package.mk
21 include ..
/python-package.mk
22 include ..
/python3-package.mk
24 define Package
/python-gnupg
/Default
28 URL
:=https
://gnupg.readthedocs.io
/en
/latest
/
32 define Package
/python-gnupg
33 $(call Package
/python-gnupg
/Default
)
35 DEPENDS
+=+PACKAGE_python-gnupg
:python-light
39 define Package
/python3-gnupg
40 $(call Package
/python-gnupg
/Default
)
42 DEPENDS
+=+PACKAGE_python3-gnupg
:python3-light
46 define Package
/python-gnupg
/description
47 A Python wrapper for GnuPG
49 This module allows easy access to GnuPG.s key management
, encryption
50 and signature functionality from Python programs
, by interacting with
51 GnuPG through file descriptors. Input arguments are strictly checked
52 and sanitised
, and therefore this module should be safe to use in
53 networked applications requiring direct user input. It is intended for
54 use on Windows
, MacOS X
, BSD
, or Linux
, with Python
2.6, Python
2.7,
55 Python
3.3, Python
3.4, or PyPy.
58 define Package
/python3-gnupg
/description
59 $(call Package
/python-gnupg
/description
)
64 define PyBuild
/Compile
65 $(call Build
/Compile
/PyMod
,,\
66 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
70 define Py3Build
/Compile
71 $(call Build
/Compile
/Py3Mod
,,\
72 install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)" \
77 $(eval
$(call PyPackage
,python-gnupg
))
78 $(eval
$(call BuildPackage
,python-gnupg
))
80 $(eval
$(call Py3Package
,python3-gnupg
))
81 $(eval
$(call BuildPackage
,python3-gnupg
))