mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
litecli: fix tests
This commit is contained in:
parent
2f0dbb8bda
commit
f3fe429d44
@ -13,6 +13,12 @@ python3Packages.buildPythonApplication rec {
|
|||||||
sha256 = "0s5a6r5q09144cc5169snwis5i2jrh3z2g4mw9wi2fsjxyhgpwq5";
|
sha256 = "0s5a6r5q09144cc5169snwis5i2jrh3z2g4mw9wi2fsjxyhgpwq5";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# fixes tests https://github.com/dbcli/litecli/pull/53
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace litecli/main.py \
|
||||||
|
--replace 'except FileNotFoundError:' 'except (FileNotFoundError, OSError):'
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
cli-helpers
|
cli-helpers
|
||||||
click
|
click
|
||||||
@ -22,8 +28,16 @@ python3Packages.buildPythonApplication rec {
|
|||||||
sqlparse
|
sqlparse
|
||||||
];
|
];
|
||||||
|
|
||||||
#Checks are failing due to missing TTY, which won't exist.
|
checkInputs = with python3Packages; [
|
||||||
doCheck = false;
|
pytest
|
||||||
|
mock
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export XDG_CONFIG_HOME=$TMP
|
||||||
|
# add missing file
|
||||||
|
echo "litecli is awesome!" > tests/test.txt
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line interface for SQLite";
|
description = "Command-line interface for SQLite";
|
||||||
|
Loading…
Reference in New Issue
Block a user