python3Packages.paho-mqtt: require six for tests
This commit is contained in:
parent
5cc1b54f4e
commit
4664f5465f
@ -5,6 +5,7 @@
|
|||||||
, isPy3k
|
, isPy3k
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, mock
|
, mock
|
||||||
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -18,16 +19,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
|
sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "pylama" "" \
|
|
||||||
--replace "'pytest-runner'" ""
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace "--pylama" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
six
|
||||||
] ++ lib.optional (!isPy3k) [
|
] ++ lib.optional (!isPy3k) [
|
||||||
mock
|
mock
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user