depot/third_party/nixpkgs/pkgs/development/python-modules/sqlparse/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

36 lines
739 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, installShellFiles
, pytestCheckHook
, isPy3k
}:
buildPythonPackage rec {
pname = "sqlparse";
version = "0.4.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-acqASEa7EU0uw4DkNgqKNA24PwzPOvzusUBN8Cj1cmg=";
};
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ pytestCheckHook ];
postInstall = ''
installManPage docs/sqlformat.1
'';
meta = with lib; {
description = "Non-validating SQL parser for Python";
longDescription = ''
Provides support for parsing, splitting and formatting SQL statements.
'';
homepage = "https://github.com/andialbrecht/sqlparse";
license = licenses.bsd3;
};
}