Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 784 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit-core 5, installShellFiles 6, pytestCheckHook 7, isPy3k 8}: 9 10buildPythonPackage rec { 11 pname = "sqlparse"; 12 version = "0.4.4"; 13 14 disabled = !isPy3k; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-1EYYPoS4NJ+jBh8P5/BsqUumW0JpRv/r5uPoKVMyQgw="; 19 }; 20 21 format = "pyproject"; 22 23 nativeBuildInputs = [ flit-core installShellFiles ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 postInstall = '' 28 installManPage docs/sqlformat.1 29 ''; 30 31 meta = with lib; { 32 description = "Non-validating SQL parser for Python"; 33 longDescription = '' 34 Provides support for parsing, splitting and formatting SQL statements. 35 ''; 36 homepage = "https://github.com/andialbrecht/sqlparse"; 37 license = licenses.bsd3; 38 }; 39}