Merge pull request #191501 from NickCao/import-checks

stratis-cli: add checks to itself and various dependencies
This commit is contained in:
superherointj 2022-09-17 19:15:31 -03:00 committed by GitHub
commit 90cf59e2d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 0 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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; {