diff --git a/pkgs/development/python-modules/dbus-python-client-gen/default.nix b/pkgs/development/python-modules/dbus-python-client-gen/default.nix index 100144c152e4..02b973d145ce 100644 --- a/pkgs/development/python-modules/dbus-python-client-gen/default.nix +++ b/pkgs/development/python-modules/dbus-python-client-gen/default.nix @@ -21,10 +21,13 @@ buildPythonPackage rec { into-dbus-python dbus-python ]; + checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "dbus_python_client_gen" ]; + meta = with lib; { description = "A Python library for generating dbus-python client code"; homepage = "https://github.com/stratis-storage/dbus-python-client-gen"; diff --git a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix index 659fcc3ed59d..8b0eb3f3cf97 100644 --- a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix +++ b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix @@ -25,6 +25,8 @@ buildPythonPackage rec { hs-dbus-signature ]; + pythonImportsCheck = [ "dbus_signature_pyparsing" ]; + meta = with lib; { description = "A Parser for a D-Bus Signature"; homepage = "https://github.com/stratis-storage/dbus-signature-pyparsing"; diff --git a/pkgs/development/python-modules/hs-dbus-signature/default.nix b/pkgs/development/python-modules/hs-dbus-signature/default.nix index 7d071b75c3b1..657a1d8b24a6 100644 --- a/pkgs/development/python-modules/hs-dbus-signature/default.nix +++ b/pkgs/development/python-modules/hs-dbus-signature/default.nix @@ -19,6 +19,8 @@ buildPythonPackage rec { hypothesis ]; + pythonImportsCheck = [ "hs_dbus_signature" ]; + meta = with lib; { description = "A Hypothesis Strategy for Generating Arbitrary DBus Signatures"; homepage = "https://github.com/stratis-storage/hs-dbus-signature"; diff --git a/pkgs/development/python-modules/into-dbus-python/default.nix b/pkgs/development/python-modules/into-dbus-python/default.nix index 1d893cd69692..5ef92cf216a5 100644 --- a/pkgs/development/python-modules/into-dbus-python/default.nix +++ b/pkgs/development/python-modules/into-dbus-python/default.nix @@ -23,12 +23,15 @@ buildPythonPackage rec { dbus-signature-pyparsing dbus-python ]; + checkInputs = [ pytestCheckHook hypothesis hs-dbus-signature ]; + pythonImportsCheck = [ "into_dbus_python" ]; + meta = with lib; { description = "A transformer to dbus-python types"; homepage = "https://github.com/stratis-storage/into-dbus-python"; diff --git a/pkgs/tools/filesystems/stratis-cli/default.nix b/pkgs/tools/filesystems/stratis-cli/default.nix index 813ecfa22c6d..145d570b6a8c 100644 --- a/pkgs/tools/filesystems/stratis-cli/default.nix +++ b/pkgs/tools/filesystems/stratis-cli/default.nix @@ -25,6 +25,18 @@ python3Packages.buildPythonApplication rec { packaging ]; + checkInputs = with python3Packages; [ + pytestCheckHook + ]; + + disabledTestPaths = [ + # tests below require dbus daemon + "tests/whitebox/integration" + "tests/whitebox/monkey_patching" + ]; + + pythonImportsCheck = [ "stratis_cli" ]; + passthru.tests = nixosTests.stratis; meta = with lib; {