summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sqlparse
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-12-10 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2020-12-10 04:20:00 +0000
commit97cbfe18015c4df1334302920a8aaeffbfdb332a (patch)
tree35c7816e377b0e8f44ce9e6baa919b7856265cdd /pkgs/development/python-modules/sqlparse
parent1f65211aa37adfc5a28c4849bbe73dcb2d2d1e2b (diff)
python38Packages.sqlparse: install manpage
Diffstat (limited to 'pkgs/development/python-modules/sqlparse')
-rw-r--r--pkgs/development/python-modules/sqlparse/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/sqlparse/default.nix b/pkgs/development/python-modules/sqlparse/default.nix
index 635111b95d9e..3ee59c391f88 100644
--- a/pkgs/development/python-modules/sqlparse/default.nix
+++ b/pkgs/development/python-modules/sqlparse/default.nix
@@ -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 ];
- # Package supports 3.x, but tests are clearly 2.x only.
- doCheck = !isPy3k;
+ checkInputs = [ pytestCheckHook ];
- meta = with stdenv.lib; {
+ 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.
@@ -30,5 +33,4 @@ buildPythonPackage rec {
homepage = "https://github.com/andialbrecht/sqlparse";
license = licenses.bsd3;
};
-
}