Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 29 additions & 20 deletions pkgs/development/python-modules/sqlparse/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, installShellFiles
, pytestCheckHook
, isPy3k

# for passthru.tests
, django
, django_4
, django-silk
, pgadmin4
{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
installShellFiles,
pytestCheckHook,
pythonOlder,

# for passthru.tests
django,
django_4,
django-silk,
pgadmin4,
}:

buildPythonPackage rec {
pname = "sqlparse";
version = "0.4.4";
version = "0.5.0";
pyproject = true;

disabled = !isPy3k;
disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-1EYYPoS4NJ+jBh8P5/BsqUumW0JpRv/r5uPoKVMyQgw=";
hash = "sha256-cU0KSTLAWdFhifWO9UEewih6Q2DxfN0O3S0J1MUIfJM=";
};

format = "pyproject";
build-system = [ hatchling ];

nativeBuildInputs = [ flit-core installShellFiles ];
nativeBuildInputs = [ installShellFiles ];

nativeCheckInputs = [ pytestCheckHook ];

Expand All @@ -35,16 +37,23 @@ buildPythonPackage rec {
'';

passthru.tests = {
inherit django django_4 django-silk pgadmin4;
inherit
django
django_4
django-silk
pgadmin4
;
};

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;
maintainers = with maintainers; [ ];
mainProgram = "sqlformat";
};
}