Merge pull request #282079 from fabaff/sqlglot-bump

python311Packages.sqlglot: 17.14.2 -> 20.9.0
This commit is contained in:
Fabian Affolter 2024-01-19 20:17:08 +01:00 committed by GitHub
commit 2489c434f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,41 +1,56 @@
{ lib
, buildPythonPackage
, duckdb
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, python-dateutil
, duckdb
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sqlglot";
version = "17.14.2";
format = "setuptools";
version = "20.9.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
repo = "sqlglot";
owner = "tobymao";
rev = "v${version}";
hash = "sha256-aImshQ5jf0k62ucpK4X8G7uHGAFQkhGgjMYo4mvSvew=";
rev = "refs/tags/v${version}";
hash = "sha256-4czhmAJUDRj0x8dCmIXg5BQ1Uvie5vx+UtWdSSY5mnM=";
};
nativeBuildInputs = [ setuptools-scm ];
nativeBuildInputs = [
setuptools
setuptools-scm
];
# optional dependency used in the sqlglot optimizer
propagatedBuildInputs = [ python-dateutil ];
propagatedBuildInputs = [
# Optional dependency used in the sqlglot optimizer
python-dateutil
];
nativeCheckInputs = [ pytestCheckHook duckdb ];
nativeCheckInputs = [
pytestCheckHook
duckdb
];
# these integration tests assume a running Spark instance
disabledTestPaths = [ "tests/dataframe/integration" ];
disabledTestPaths = [
# These integration tests assume a running Spark instance
"tests/dataframe/integration"
];
pythonImportsCheck = [ "sqlglot" ];
pythonImportsCheck = [
"sqlglot"
];
meta = with lib; {
description = "A no dependency Python SQL parser, transpiler, and optimizer";
homepage = "https://github.com/tobymao/sqlglot";
changelog = "https://github.com/tobymao/sqlglot/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};