mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
61d3d57a47
Since setuptools 69.3.0, it supports PEP625, based on this, package name and as well, the wheel should used lowercase instead of uppercase and also dots (.) should use underscore (_) More details can be found here: https://discuss.python.org/t/amending-pep-427-and-pep-625-on-package-normalization-rules/17226 Fixes: ``` Successfully built flask-2.0.2-py3-none-any.whl Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module> _main(sys.argv[1:], "python -m installer") File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/__main__.py", line 86, in _main with WheelFile.open(args.wheel) as source: File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.11/site-packages/installer/sources.py", line 162, in open with zipfile.ZipFile(path) as f: ^^^^^^^^^^^^^^^^^^^^^ File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.11/zipfile.py", line 1311, in __init__ self.fp = io.open(file, filemode) ^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/pypi/Flask-2.0.2//openwrt-build/Flask-2.0.2-*.whl' ``` Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-pynacl
|
|
PKG_VERSION:=1.5.0
|
|
PKG_RELEASE:=3
|
|
|
|
PYPI_NAME:=PyNaCl
|
|
PYPI_SOURCE_NAME:=pynacl
|
|
PKG_HASH:=8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba
|
|
|
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_DEPENDS:=libffi/host python-cffi/host # cffi>=1.4.1
|
|
|
|
PYTHON3_PKG_BUILD_VARS:=SODIUM_INSTALL=system
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-pynacl
|
|
CATEGORY:=Languages
|
|
SECTION:=lang
|
|
SUBMENU:=Python
|
|
TITLE:=Python binding to the libsodium library
|
|
URL:=https://github.com/pyca/pynacl/
|
|
DEPENDS:=+libsodium +python3-light +python3-cffi +python3-six
|
|
endef
|
|
|
|
define Package/python3-pynacl/description
|
|
PyNaCl is a Python binding to libsodium, which is a fork of the Networking and Cryptography library.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-pynacl))
|
|
$(eval $(call BuildPackage,python3-pynacl))
|
|
$(eval $(call BuildPackage,python3-pynacl-src))
|