python312Packages.sqlparse: refactor

This commit is contained in:
Fabian Affolter
2024-04-22 14:02:16 +02:00
committed by Martin Weinelt
parent 9c2d2665fe
commit d0ca2f5fd7
@@ -1,10 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, hatchling
, installShellFiles
, pytestCheckHook
, isPy3k
, pythonOlder
# for passthru.tests
, django
@@ -16,17 +16,18 @@
buildPythonPackage rec {
pname = "sqlparse";
version = "0.5.0";
pyproject = true;
disabled = !isPy3k;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-cU0KSTLAWdFhifWO9UEewih6Q2DxfN0O3S0J1MUIfJM=";
};
format = "pyproject";
build-system = [ hatchling ];
nativeBuildInputs = [ flit-core installShellFiles ];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ pytestCheckHook ];
@@ -40,11 +41,12 @@ buildPythonPackage rec {
meta = with lib; {
description = "Non-validating SQL parser for Python";
mainProgram = "sqlformat";
longDescription = ''
Provides support for parsing, splitting and formatting SQL statements.
'';
homepage = "https://github.com/andialbrecht/sqlparse";
changelog = "https://github.com/andialbrecht/sqlparse/blob/${version}/CHANGELOG";
license = licenses.bsd3;
mainProgram = "sqlformat";
};
}