Skip to content

Commit

Permalink
harlequin-mysql: init at 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
knvpk committed Nov 4, 2024
1 parent 7eabf55 commit 94dee71
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/by-name/ha/harlequin/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
versionCheckHook,
withPostgresAdapter ? true,
withBigQueryAdapter ? true,
withMySQLAdapter ? true,
}:
python3Packages.buildPythonApplication rec {
pname = "harlequin";
Expand Down Expand Up @@ -43,7 +44,8 @@ python3Packages.buildPythonApplication rec {
packaging
]
++ lib.optionals withPostgresAdapter [ harlequin-postgres ]
++ lib.optionals withBigQueryAdapter [ harlequin-bigquery ];
++ lib.optionals withBigQueryAdapter [ harlequin-bigquery ]
++ lib.optionals withMySQLAdapter [ harlequin-mysql ];

pythonRelaxDeps = [
"textual"
Expand Down
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/harlequin-mysql/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
python3Packages,
}:

buildPythonPackage rec {
pname = "harlequin-mysql";
version = "0.3.0";
pyproject = true;

src = fetchPypi {
pname = "harlequin_mysql";
inherit version;
hash = "sha256-Ru9CxbZYVo9TQO5TwkHLEzPz4EkUgHwfg3Qeg1F4eLM=";
};

build-system = [
poetry-core
];

dependencies = with python3Packages; [
mysql-connector
];

pythonRelaxDeps = [
"mysql-connector-python"
];


# To prevent circular dependency
# as harlequin-mysql requires harlequin which requires harlequin-mysql
doCheck = false;
pythonRemoveDeps = [
"harlequin"
];

meta = {
description = "A Harlequin adapter for MySQL";
homepage = "https://pypi.org/project/harlequin-mysql/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pcboy ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5604,6 +5604,8 @@ self: super: with self; {

harlequin-bigquery = callPackage ../development/python-modules/harlequin-bigquery { };

harlequin-mysql = callPackage ../development/python-modules/harlequin-mysql { };

harlequin-postgres = callPackage ../development/python-modules/harlequin-postgres { };

hass-client = callPackage ../development/python-modules/hass-client { };
Expand Down

0 comments on commit 94dee71

Please sign in to comment.