blob: af0da3c3dbd5daf8d6be7b2bcf30807bacba1eb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
installShellFiles,
pytestCheckHook,
# for passthru.tests
django,
django_4,
django-silk,
pgadmin4,
}:
buildPythonPackage rec {
pname = "sqlparse";
version = "0.5.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-CfZ3h/VqCxbs294b/H9dnDNxymg8/qqOb/YLSAfsknI=";
};
build-system = [ hatchling ];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ pytestCheckHook ];
postInstall = ''
installManPage docs/sqlformat.1
'';
passthru.tests = {
inherit
django
django_4
django-silk
pgadmin4
;
};
meta = {
description = "Non-validating SQL parser for Python";
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 = lib.licenses.bsd3;
mainProgram = "sqlformat";
};
}
|