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