Files
nixpkgs/pkgs/development/python-modules/sqlparse/default.nix
T

37 lines
746 B
Nix
Raw Normal View History

2020-12-10 04:20:00 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2020-12-10 04:20:00 +00:00
, installShellFiles
, pytestCheckHook
, isPy3k
}:
buildPythonPackage rec {
pname = "sqlparse";
2020-11-29 15:04:43 +01:00
version = "0.4.1";
2020-12-10 04:20:00 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-11-29 15:04:43 +01:00
sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8";
};
2020-12-10 04:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
checkInputs = [ pytestCheckHook ];
postInstall = ''
installManPage docs/sqlformat.1
'';
2020-12-10 04:20:00 +00:00
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;
};
}