mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
harlequin: enable tests
This commit is contained in:
parent
e3b12254fb
commit
f673b77933
@ -6,6 +6,7 @@
|
|||||||
testers,
|
testers,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
|
glibcLocales,
|
||||||
withPostgresAdapter ? true,
|
withPostgresAdapter ? true,
|
||||||
withBigQueryAdapter ? true,
|
withBigQueryAdapter ? true,
|
||||||
}:
|
}:
|
||||||
@ -21,34 +22,32 @@ python3Packages.buildPythonApplication rec {
|
|||||||
hash = "sha256-ov9pMvFzJAMfOM7JeSgnp6dZ424GiRaH7W5OCKin9Jk=";
|
hash = "sha256-ov9pMvFzJAMfOM7JeSgnp6dZ424GiRaH7W5OCKin9Jk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
pythonRelaxDeps = [ "textual" ];
|
||||||
poetry-core
|
|
||||||
];
|
build-system = with python3Packages; [ poetry-core ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ glibcLocales ];
|
||||||
|
|
||||||
dependencies =
|
dependencies =
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
[
|
[
|
||||||
|
click
|
||||||
|
duckdb
|
||||||
|
importlib-metadata
|
||||||
|
numpy
|
||||||
|
packaging
|
||||||
|
platformdirs
|
||||||
|
questionary
|
||||||
|
rich-click
|
||||||
|
sqlfmt
|
||||||
textual
|
textual
|
||||||
textual-fastdatatable
|
textual-fastdatatable
|
||||||
textual-textarea
|
textual-textarea
|
||||||
click
|
|
||||||
rich-click
|
|
||||||
duckdb
|
|
||||||
sqlfmt
|
|
||||||
platformdirs
|
|
||||||
importlib-metadata
|
|
||||||
tomlkit
|
tomlkit
|
||||||
questionary
|
|
||||||
numpy
|
|
||||||
packaging
|
|
||||||
]
|
]
|
||||||
++ lib.optionals withPostgresAdapter [ harlequin-postgres ]
|
++ lib.optionals withPostgresAdapter [ harlequin-postgres ]
|
||||||
++ lib.optionals withBigQueryAdapter [ harlequin-bigquery ];
|
++ lib.optionals withBigQueryAdapter [ harlequin-bigquery ];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
|
||||||
"textual"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"harlequin"
|
"harlequin"
|
||||||
"harlequin_duckdb"
|
"harlequin_duckdb"
|
||||||
@ -60,17 +59,37 @@ python3Packages.buildPythonApplication rec {
|
|||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeCheckInputs =
|
||||||
|
[
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
|
]
|
||||||
|
++ (with python3Packages; [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
]);
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tests require network access
|
||||||
|
"test_connect_extensions"
|
||||||
|
"test_connect_prql"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Tests requires more setup
|
||||||
|
"tests/functional_tests/"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "The SQL IDE for Your Terminal";
|
description = "The SQL IDE for Your Terminal";
|
||||||
homepage = "https://harlequin.sh";
|
homepage = "https://harlequin.sh";
|
||||||
mainProgram = "harlequin";
|
changelog = "https://github.com/tconbeer/harlequin/releases/tag/v${version}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
|
mainProgram = "harlequin";
|
||||||
maintainers = with lib.maintainers; [ pcboy ];
|
maintainers = with lib.maintainers; [ pcboy ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
changelog = "https://github.com/tconbeer/harlequin/releases/tag/v${version}";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user