python38Packages.sqlparse: install manpage

This commit is contained in:
Mario Rodas 2020-12-10 04:20:00 +00:00
parent 1f65211aa3
commit 97cbfe1801

View file

@ -1,7 +1,8 @@
{ stdenv
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, installShellFiles
, pytestCheckHook
, isPy3k
}:
@ -9,20 +10,22 @@ buildPythonPackage rec {
pname = "sqlparse";
version = "0.4.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
nativeBuildInputs = [ installShellFiles ];
checkInputs = [ pytestCheckHook ];
postInstall = ''
installManPage docs/sqlformat.1
'';
# Package supports 3.x, but tests are clearly 2.x only.
doCheck = !isPy3k;
meta = with stdenv.lib; {
meta = with lib; {
description = "Non-validating SQL parser for Python";
longDescription = ''
Provides support for parsing, splitting and formatting SQL statements.
@ -30,5 +33,4 @@ buildPythonPackage rec {
homepage = "https://github.com/andialbrecht/sqlparse";
license = licenses.bsd3;
};
}