python3Packages.paho-mqtt: require six for tests

This commit is contained in:
Martin Weinelt 2022-03-31 16:26:42 +02:00
parent 5cc1b54f4e
commit 4664f5465f

View File

@ -5,6 +5,7 @@
, isPy3k
, pytestCheckHook
, mock
, six
}:
buildPythonPackage rec {
@ -18,16 +19,9 @@ buildPythonPackage rec {
sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pylama" "" \
--replace "'pytest-runner'" ""
substituteInPlace setup.cfg \
--replace "--pylama" ""
'';
checkInputs = [
pytestCheckHook
six
] ++ lib.optional (!isPy3k) [
mock
];