Skip to content

Commit

Permalink
databrics-sql-cli: Relax dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kfollesdal committed Aug 7, 2024
1 parent 56ccad3 commit d9fd652
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/applications/misc/databricks-sql-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchFromGitHub
, fetchpatch
, python3
, pythonRelaxDepsHook
}:

python3.pkgs.buildPythonApplication rec {
Expand All @@ -24,15 +25,20 @@ python3.pkgs.buildPythonApplication rec {
})
];

pythonRelaxDeps = [
"pandas"
"databricks-sql-connector"
"sqlparse"
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'python = ">=3.7.1,<4.0"' 'python = ">=3.8,<4.0"' \
--replace 'pandas = "1.3.4"' 'pandas = "~1.5"'
'';

nativeBuildInputs = with python3.pkgs; [
nativeBuildInputs = (with python3.pkgs; [
poetry-core
];
]) ++ [ pythonRelaxDepsHook ];

propagatedBuildInputs = with python3.pkgs; [
cli-helpers
Expand Down

0 comments on commit d9fd652

Please sign in to comment.