summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-12 18:20:55 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-12 18:21:20 +0100
commit1bf46292200463ff64e6004e5bdfa5271b10822a (patch)
tree2c2ed3cc48f9b1aa9fe46762e1d583afd922d4cd /dev-python/django-js-asset
parentnet-im/synapse: add 1.98.0 (diff)
downloadgentoo-1bf46292200463ff64e6004e5bdfa5271b10822a.tar.gz
gentoo-1bf46292200463ff64e6004e5bdfa5271b10822a.tar.bz2
gentoo-1bf46292200463ff64e6004e5bdfa5271b10822a.zip
dev-python/django-js-asset: Fix building with hatchling-1.19
Closes: https://bugs.gentoo.org/919785 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-js-asset')
-rw-r--r--dev-python/django-js-asset/django-js-asset-2.1.0.ebuild5
-rw-r--r--dev-python/django-js-asset/files/django-js-asset-2.1.0-hatchling.patch29
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/django-js-asset/django-js-asset-2.1.0.ebuild b/dev-python/django-js-asset/django-js-asset-2.1.0.ebuild
index 94a57b485d5b..524084cf255c 100644
--- a/dev-python/django-js-asset/django-js-asset-2.1.0.ebuild
+++ b/dev-python/django-js-asset/django-js-asset-2.1.0.ebuild
@@ -29,6 +29,11 @@ BDEPEND="
)
"
+PATCHES=(
+ # https://github.com/matthiask/django-js-asset/pull/12
+ "${FILESDIR}/${P}-hatchling.patch"
+)
+
python_test() {
cd tests || die
local -x DJANGO_SETTINGS_MODULE=testapp.settings
diff --git a/dev-python/django-js-asset/files/django-js-asset-2.1.0-hatchling.patch b/dev-python/django-js-asset/files/django-js-asset-2.1.0-hatchling.patch
new file mode 100644
index 000000000000..194d97192b3c
--- /dev/null
+++ b/dev-python/django-js-asset/files/django-js-asset-2.1.0-hatchling.patch
@@ -0,0 +1,29 @@
+From 440ad305e76a0a948e0df54eb9b92b59c1ac9cb9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Tue, 12 Dec 2023 18:17:50 +0100
+Subject: [PATCH] Fix building with hatchling-1.19
+
+Explicitly specify package name, as hatchling-1.19 now does not include
+packages that do not match the project name by default, and raises
+an error instead.
+---
+ pyproject.toml | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index cf963d8..478d8fc 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -42,6 +42,9 @@ tests = [
+ [project.urls]
+ Homepage = "https://github.com/matthiask/django-js-asset/"
+
++[tool.hatch.build.targets.wheel]
++packages = ["js_asset"]
++
+ [tool.hatch.version]
+ path = "js_asset/__init__.py"
+
+--
+2.43.0
+