summaryrefslogtreecommitdiff
path: root/repo/poetry/poetry.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/poetry/poetry.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/poetry/poetry.xibuild')
-rw-r--r--repo/poetry/poetry.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/poetry/poetry.xibuild b/repo/poetry/poetry.xibuild
new file mode 100644
index 0000000..fbc0f38
--- /dev/null
+++ b/repo/poetry/poetry.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="poetry"
+DESC="Python dependency management and packaging system"
+
+MAKEDEPS="python-poetry-core python-build python-installer python-pyrsistent python-lark python-tomlkit"
+
+PKG_VER=1.1.13
+SOURCE="https://github.com/sdispater/poetry/archive/$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-packaging-tags.patch
+"
+
+prepare() {
+ apply_patches
+ git init
+}
+
+build() {
+ python3 -m build --no-isolation --skip-dependency-check --wheel
+}
+
+package() {
+ python3 -m installer -d "$PKG_DEST" --compile-bytecode 0 \
+ dist/poetry-$PKG_VER-py2.py3-none-any.whl
+
+ # remove conflicts with files owned by py3-poetry-core (direct dependency of poetry)
+ # see: https://github.com/python-poetry/poetry/issues/2800
+ local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
+ rm "$PKG_DEST/$sitedir"/poetry/__init__.py \
+ "$PKG_DEST/$sitedir"/poetry/__pycache__/__init__.cpython-*.pyc \
+ "$PKG_DEST/$sitedir"/poetry/json/schemas/poetry-schema.json
+}
+