python3Packages.paho-mqtt: require six for tests

main
Martin Weinelt 2 years ago
parent 5cc1b54f4e
commit 4664f5465f
  1. 10
      pkgs/development/python-modules/paho-mqtt/default.nix

@ -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…
Cancel
Save