git: e71cbdf569b2 - main - databases/py-harlequin: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 15:50:46 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e71cbdf569b2bbfdef3327aac82a3f312886a993

commit e71cbdf569b2bbfdef3327aac82a3f312886a993
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-01-31 15:32:33 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-01-31 15:32:33 +0000

    databases/py-harlequin: Add new port
    
    Harlequin is an easy, fast, and beautiful database client for the terminal.
    
    It has all the features you'd expect from an SQL IDE, delightfully running
    right in your terminal.
    
      - View tables, columns, and their types across one or more attached
        databases. Optionally view local files or S3 objects.
      - A full-featured editor: autocomplete, open, save, format, cut, copy, paste,
        and more. Supports multiple tabbed buffers!
      - View 1M+ results in an interactive table. Multiple queries loaded into
        separate tabs.
      - Full Screen
      - Export query results and configure the export using a helpful UI.
      - View a list of executed queries and a summary of results. Select to insert
        into a new buffer.
    
    https://harlequin.sh/
---
 databases/Makefile               |  1 +
 databases/py-harlequin/Makefile  | 32 ++++++++++++++++++++++++++++++++
 databases/py-harlequin/distinfo  |  3 +++
 databases/py-harlequin/pkg-descr | 15 +++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index 4d037e3f9456..39c6962f6f58 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -777,6 +777,7 @@
     SUBDIR += py-flask-sqlalchemy30
     SUBDIR += py-gdbm
     SUBDIR += py-geoalchemy2
+    SUBDIR += py-harlequin
     SUBDIR += py-hiredis
     SUBDIR += py-influxdb
     SUBDIR += py-kyotocabinet
diff --git a/databases/py-harlequin/Makefile b/databases/py-harlequin/Makefile
new file mode 100644
index 000000000000..9b3800649ed8
--- /dev/null
+++ b/databases/py-harlequin/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	harlequin
+DISTVERSION=	2.5.1
+CATEGORIES=	databases python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	SQL IDE for your terminal
+WWW=		https://harlequin.sh/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=1.28.0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.1.7_1:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>=2.3.3,1:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}platformdirs>=4.5.1:devel/py-platformdirs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}questionary>=2.1.1:devel/py-questionary@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich-click>=1.8.5:devel/py-rich-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}shandy-sqlfmt>=0.29.0:devel/py-shandy-sqlfmt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textual-fastdatatable>=0.14.0:textproc/py-textual-fastdatatable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textual-textarea>=0.17.2:textproc/py-textual-textarea@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textual>=6.11.0:textproc/py-textual@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomlkit>=0.13.3:textproc/py-tomlkit@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tree-sitter>=0.20.4_1:devel/py-tree-sitter@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/databases/py-harlequin/distinfo b/databases/py-harlequin/distinfo
new file mode 100644
index 000000000000..aabe72e48b09
--- /dev/null
+++ b/databases/py-harlequin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1769259757
+SHA256 (harlequin-2.5.1.tar.gz) = 8e9dc29df55a7cb546fdbc9999b3df365f825cba537d98160644225a7b1d0d57
+SIZE (harlequin-2.5.1.tar.gz) = 108016
diff --git a/databases/py-harlequin/pkg-descr b/databases/py-harlequin/pkg-descr
new file mode 100644
index 000000000000..8befd29f24d2
--- /dev/null
+++ b/databases/py-harlequin/pkg-descr
@@ -0,0 +1,15 @@
+Harlequin is an easy, fast, and beautiful database client for the terminal.
+
+It has all the features you'd expect from an SQL IDE, delightfully running
+right in your terminal.
+
+  - View tables, columns, and their types across one or more attached
+    databases. Optionally view local files or S3 objects.
+  - A full-featured editor: autocomplete, open, save, format, cut, copy, paste,
+    and more. Supports multiple tabbed buffers!
+  - View 1M+ results in an interactive table. Multiple queries loaded into
+    separate tabs.
+  - Full Screen
+  - Export query results and configure the export using a helpful UI.
+  - View a list of executed queries and a summary of results. Select to insert
+    into a new buffer.