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
litecli: fix tests
Dmitry Kalinkin
7 years ago
f3fe429d
2f0dbb8b
+16
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
database
litecli
default.nix
+16
-2
pkgs/development/tools/database/litecli/default.nix
···
13
sha256 = "0s5a6r5q09144cc5169snwis5i2jrh3z2g4mw9wi2fsjxyhgpwq5";
14
};
15
0
0
0
0
0
0
16
propagatedBuildInputs = with python3Packages; [
17
cli-helpers
18
click
···
22
sqlparse
23
];
24
25
-
#Checks are failing due to missing TTY, which won't exist.
26
-
doCheck = false;
0
0
0
0
0
0
0
0
27
28
meta = with lib; {
29
description = "Command-line interface for SQLite";
···
13
sha256 = "0s5a6r5q09144cc5169snwis5i2jrh3z2g4mw9wi2fsjxyhgpwq5";
14
};
15
16
+
# fixes tests https://github.com/dbcli/litecli/pull/53
17
+
postPatch = ''
18
+
substituteInPlace litecli/main.py \
19
+
--replace 'except FileNotFoundError:' 'except (FileNotFoundError, OSError):'
20
+
'';
21
+
22
propagatedBuildInputs = with python3Packages; [
23
cli-helpers
24
click
···
28
sqlparse
29
];
30
31
+
checkInputs = with python3Packages; [
32
+
pytest
33
+
mock
34
+
];
35
+
36
+
preCheck = ''
37
+
export XDG_CONFIG_HOME=$TMP
38
+
# add missing file
39
+
echo "litecli is awesome!" > tests/test.txt
40
+
'';
41
42
meta = with lib; {
43
description = "Command-line interface for SQLite";