python311Packages.pyocd: 0.35.1 -> 0.36.0

https://github.com/pyocd/pyOCD/releases/tag/v0.36.0
This commit is contained in:
Martin Weinelt 2023-10-26 17:19:49 +02:00
parent 14f19f0dcf
commit 47f5af6aee
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -5,14 +5,19 @@
, capstone
, cmsis-pack-manager
, colorama
, importlib-metadata
, importlib-resources
, intelhex
, intervaltree
, lark
, natsort
, prettytable
, pyelftools
, pylink-square
, pyusb
, pyyaml
, setuptools
, setuptools-scm
, typing-extensions
, stdenv
, hidapi
@ -21,11 +26,12 @@
buildPythonPackage rec {
pname = "pyocd";
version = "0.35.1";
version = "0.36.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-AugIT007JtTXx0cLtHD9TtxsK/K6eB492U2k+EVxyXU=";
hash = "sha256-k3eCrMna/wVNUPt8b3iM2UqE+A8LhfJarKuZ3Jgihkg=";
};
patches = [
@ -37,12 +43,25 @@ buildPythonPackage rec {
})
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "libusb-package>=1.0,<2.0" ""
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
capstone
cmsis-pack-manager
colorama
importlib-metadata
importlib-resources
intelhex
intervaltree
lark
natsort
prettytable
pyelftools
@ -54,19 +73,19 @@ buildPythonPackage rec {
hidapi
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"pyocd"
];
pythonImportsCheck = [ "pyocd" ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "libusb-package>=1.0,<2.0" "" \
--replace "pylink-square>=0.11.1,<1.0" "pylink-square>=0.11.1,<2.0"
'';
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/pyocd/pyOCD/releases/tag/v${version}";
description = "Python library for programming and debugging Arm Cortex-M microcontrollers";
homepage = "https://pyocd.io/";
downloadPage = "https://github.com/pyocd/pyOCD";
homepage = "https://pyocd.io";
license = licenses.asl20;
maintainers = with maintainers; [ frogamic sbruder ];
};