python3Packages.pyocd: python 3.12 fixes
This commit is contained in:
parent
a14c5d651c
commit
035800332b
@ -17,7 +17,6 @@
|
||||
pylink-square,
|
||||
pyusb,
|
||||
pyyaml,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
typing-extensions,
|
||||
stdenv,
|
||||
@ -44,17 +43,11 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "libusb-package>=1.0,<2.0" ""
|
||||
'';
|
||||
pythonRemoveDeps = [ "libusb-package" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
capstone_4
|
||||
cmsis-pack-manager
|
||||
colorama
|
||||
@ -74,6 +67,12 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "pyocd" ];
|
||||
|
||||
disabledTests = [
|
||||
# AttributeError: 'not_called' is not a valid assertion
|
||||
# Upstream fix at https://github.com/pyocd/pyOCD/pull/1710
|
||||
"test_transfer_err_not_flushed"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user