databricks-sql-cli: use python3.pkgs

This commit is contained in:
Fabian Affolter 2023-03-14 11:55:11 +01:00
parent 144e7d8859
commit d51b160067

View File

@ -1,20 +1,10 @@
{ lib { lib
, buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, poetry-core , python3
, pandas
, prompt-toolkit
, databricks-sql-connector
, pygments
, configobj
, sqlparse
, cli-helpers
, click
, pytestCheckHook
}: }:
buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "databricks-sql-cli"; pname = "databricks-sql-cli";
version = "0.1.4"; version = "0.1.4";
format = "pyproject"; format = "pyproject";
@ -37,25 +27,25 @@ buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \ --replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \
--replace 'pandas = "1.3.4"' 'pandas = "~1.4"' --replace 'pandas = "1.3.4"' 'pandas = "~1.5"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = with python3.pkgs; [
poetry-core poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = with python3.pkgs; [
prompt-toolkit
pandas
databricks-sql-connector
pygments
configobj
sqlparse
cli-helpers cli-helpers
click click
configobj
databricks-sql-connector
pandas
prompt-toolkit
pygments
sqlparse
]; ];
nativeCheckInputs = [ nativeCheckInputs = with python3.pkgs; [
pytestCheckHook pytestCheckHook
]; ];