diff --git a/pkgs/development/python-modules/sqlfmt/default.nix b/pkgs/development/python-modules/sqlfmt/default.nix index 709a4746c8c9..2f1dff47901a 100644 --- a/pkgs/development/python-modules/sqlfmt/default.nix +++ b/pkgs/development/python-modules/sqlfmt/default.nix @@ -5,15 +5,14 @@ click, fetchFromGitHub, gitpython, - importlib-metadata, jinja2, platformdirs, poetry-core, pytest-asyncio, pytestCheckHook, pythonOlder, - tomli, tqdm, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -21,7 +20,7 @@ buildPythonPackage rec { version = "0.27.0"; pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "tconbeer"; @@ -30,16 +29,12 @@ buildPythonPackage rec { hash = "sha256-Yel9SB7KrDqtuZxNx4omz6u4AID8Fk5kFYKBEZD1fuU="; }; - pythonRelaxDeps = [ "platformdirs" ]; - build-system = [ poetry-core ]; dependencies = [ click - importlib-metadata jinja2 platformdirs - tomli tqdm ]; @@ -51,11 +46,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio pytestCheckHook + writableTmpDirAsHomeHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); preCheck = '' - export HOME=$(mktemp -d) export PATH="$PATH:$out/bin"; '';