Merge pull request #191501 from NickCao/import-checks
stratis-cli: add checks to itself and various dependencies
This commit is contained in:
commit
90cf59e2d6
5 changed files with 22 additions and 0 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue