python312Packages.uvcclient: switch to pynose, fix test
This commit is contained in:
@@ -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
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user