python3Packages.pyocd: python 3.12 fixes

This commit is contained in:
Dominic Shelton 2024-07-09 15:54:08 +10:00
parent a14c5d651c
commit 035800332b
No known key found for this signature in database
GPG Key ID: AAE070F067EC00A5

View File

@ -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; {