@@ -956,6 +956,7 @@ endif
if BR2_PACKAGE_PYTHON3
menu "External python modules"
source "package/python-aenum/Config.in"
+ source "package/python-aerich/Config.in"
source "package/python-aexpect/Config.in"
source "package/python-aioblescan/Config.in"
source "package/python-aiocoap/Config.in"
new file mode 100644
@@ -0,0 +1,29 @@
+From e729bb9b602ba74dea7ccc978dac709283a0934a Mon Sep 17 00:00:00 2001
+From: strayge <strayge@gmail.com>
+Date: Fri, 18 Aug 2023 15:03:38 +0400
+Subject: [PATCH] update poetry build-backend to support editable install
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+Upstream: https://github.com/tortoise/aerich/commit/e729bb9b602ba74dea7ccc978dac709283a0934a
+---
+ pyproject.toml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index b9390e1..7673d70 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -45,8 +45,8 @@ location = "./migrations"
+ src_folder = "./."
+
+ [build-system]
+-requires = ["poetry>=0.12"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ aerich = "aerich.cli:main"
+--
+2.34.1
+
new file mode 100644
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_AERICH
+ bool "python-aerich"
+ depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core
+ select BR2_PACKAGE_PYTHON_CLICK # runtime
+ select BR2_PACKAGE_PYTHON_DICTDIFFER # runtime
+ select BR2_PACKAGE_PYTHON_PYDANTIC # runtime
+ select BR2_PACKAGE_PYTHON_TOMLKIT # runtime
+ select BR2_PACKAGE_PYTHON_TORTOISE_ORM # runtime
+ help
+ A database migrations tool for Tortoise ORM.
+
+ https://github.com/tortoise/aerich
new file mode 100644
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/aerich/json
+md5 26a99a2c6c604a370b228b74e12c7981 aerich-0.7.2.tar.gz
+sha256 31d67de7b96184636b89de99062e059e5e6204b6251d24c33eb21fc9cf982e09 aerich-0.7.2.tar.gz
+# Locally computed sha256 checksums
+sha256 4cc00f0e33ac8e089b37d8a1474be441b26311bdc16fe035c75b51201515f617 LICENSE
new file mode 100644
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-aerich
+#
+################################################################################
+
+PYTHON_AERICH_VERSION = 0.7.2
+PYTHON_AERICH_SOURCE = aerich-$(PYTHON_AERICH_VERSION).tar.gz
+PYTHON_AERICH_SITE = https://files.pythonhosted.org/packages/ca/cd/ae9c60ffc21e2d41e22c62cbf24a60dfad937222d880489703842d179746
+PYTHON_AERICH_SETUP_TYPE = pep517
+PYTHON_AERICH_LICENSE = Apache-2.0
+PYTHON_AERICH_LICENSE_FILES = LICENSE
+PYTHON_AERICH_DEPENDENCIES = host-python-poetry-core
+
+$(eval $(python-package))
We need to backport a patch so that the correct poetry build backend is used. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> --- package/Config.in | 1 + ...ild-backend-to-support-editable-inst.patch | 29 +++++++++++++++++++ package/python-aerich/Config.in | 12 ++++++++ package/python-aerich/python-aerich.hash | 5 ++++ package/python-aerich/python-aerich.mk | 15 ++++++++++ 5 files changed, 62 insertions(+) create mode 100644 package/python-aerich/0001-update-poetry-build-backend-to-support-editable-inst.patch create mode 100644 package/python-aerich/Config.in create mode 100644 package/python-aerich/python-aerich.hash create mode 100644 package/python-aerich/python-aerich.mk