tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python38Packages.sqlparse: install manpage
Mario Rodas
5 years ago
97cbfe18
1f65211a
+12
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
sqlparse
default.nix
+12
-10
pkgs/development/python-modules/sqlparse/default.nix
···
1
1
-
{ stdenv
1
1
+
{ lib
2
2
, buildPythonPackage
3
3
, fetchPypi
4
4
-
, pytest
4
4
+
, installShellFiles
5
5
+
, pytestCheckHook
5
6
, isPy3k
6
7
}:
7
8
···
9
10
pname = "sqlparse";
10
11
version = "0.4.1";
11
12
13
13
+
disabled = !isPy3k;
14
14
+
12
15
src = fetchPypi {
13
16
inherit pname version;
14
17
sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8";
15
18
};
16
19
17
17
-
checkInputs = [ pytest ];
18
18
-
checkPhase = ''
19
19
-
py.test
20
20
-
'';
20
20
+
nativeBuildInputs = [ installShellFiles ];
21
21
22
22
-
# Package supports 3.x, but tests are clearly 2.x only.
23
23
-
doCheck = !isPy3k;
22
22
+
checkInputs = [ pytestCheckHook ];
23
23
+
24
24
+
postInstall = ''
25
25
+
installManPage docs/sqlformat.1
26
26
+
'';
24
27
25
25
-
meta = with stdenv.lib; {
28
28
+
meta = with lib; {
26
29
description = "Non-validating SQL parser for Python";
27
30
longDescription = ''
28
31
Provides support for parsing, splitting and formatting SQL statements.
···
30
33
homepage = "https://github.com/andialbrecht/sqlparse";
31
34
license = licenses.bsd3;
32
35
};
33
33
-
34
36
}