python3Packages.ihatemoney: disable sandbox unfriendly tests, fix passthru
This commit is contained in:
parent
feda1d67d2
commit
43d588b0af
@ -30,6 +30,7 @@
|
|||||||
, wtforms
|
, wtforms
|
||||||
, psycopg2 # optional, for postgresql support
|
, psycopg2 # optional, for postgresql support
|
||||||
, flask_testing
|
, flask_testing
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# ihatemoney is not really a library. It will only ever be imported
|
# ihatemoney is not really a library. It will only ever be imported
|
||||||
@ -113,12 +114,19 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
flask_testing
|
flask_testing pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "--pyargs ihatemoney.tests.tests" ];
|
||||||
|
disabledTests = [
|
||||||
|
"test_notifications" # requires running service.
|
||||||
|
"test_invite" # requires running service.
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
inherit (nixosTests) ihatemoney;
|
inherit (nixosTests.ihatemoney) ihatemoney-postgresql ihatemoney-sqlite;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://ihatemoney.org";
|
homepage = "https://ihatemoney.org";
|
||||||
description = "A simple shared budget manager web application";
|
description = "A simple shared budget manager web application";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user