python3Packages.paho-mqtt: require six for tests
This commit is contained in:
parent
5cc1b54f4e
commit
4664f5465f
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user