python313Packages.sqlfmt: refactor (#433809)
This commit is contained in:
@@ -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";
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user