python312Packages.uvcclient: switch to pynose, fix test

This commit is contained in:
Martin Weinelt
2024-02-24 04:01:02 +01:00
parent 24d4e25fa3
commit 1d170e2aec
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, nose, mock }:
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pynose, mock }:
buildPythonPackage rec {
pname = "uvcclient";
@@ -12,8 +12,13 @@ buildPythonPackage rec {
sha256 = "0k8aswrk1n08w6pi6dg0zdzsmk23cafihkrss9ywg3i85w7q43x2";
};
postPatch = ''
substituteInPlace tests/test_camera.py \
--replace-fail "assertEquals" "assertEqual"
'';
nativeCheckInputs = [
nose
pynose
mock
];