1{ lib 2, buildPythonPackage 3, fetchPypi 4, installShellFiles 5, pytestCheckHook 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 pname = "sqlparse"; 11 version = "0.4.2"; 12 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0c00730c74263a94e5a9919ade150dfc3b19c574389985446148402998287dae"; 18 }; 19 20 nativeBuildInputs = [ installShellFiles ]; 21 22 checkInputs = [ pytestCheckHook ]; 23 24 postInstall = '' 25 installManPage docs/sqlformat.1 26 ''; 27 28 meta = with lib; { 29 description = "Non-validating SQL parser for Python"; 30 longDescription = '' 31 Provides support for parsing, splitting and formatting SQL statements. 32 ''; 33 homepage = "https://github.com/andialbrecht/sqlparse"; 34 license = licenses.bsd3; 35 }; 36}