Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 746 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, installShellFiles 5, pytestCheckHook 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 pname = "sqlparse"; 11 version = "0.4.1"; 12 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"; 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}