Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/hs-dbus-signature/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/into-dbus-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
12 changes: 12 additions & 0 deletions pkgs/tools/filesystems/stratis-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; {
Expand Down