python3Packages.pyocd: fix (#437263)

Changed files
+21 -16
pkgs
development
python-modules
pyocd
spsdk
spsdk-pyocd
+11 -16
pkgs/development/python-modules/pyocd/default.nix
···
{
lib,
+
stdenv,
buildPythonPackage,
fetchFromGitHub,
-
fetchpatch,
+
+
# build-system
+
setuptools-scm,
+
+
# dependencies
capstone,
cmsis-pack-manager,
colorama,
···
pylink-square,
pyusb,
pyyaml,
-
setuptools-scm,
typing-extensions,
-
stdenv,
hidapi,
+
+
# tests
pytestCheckHook,
}:
···
hash = "sha256-4fdVcTNH125e74S3mA/quuDun17ntGCazX6CV+obUGc=";
};
-
patches = [
-
# https://github.com/pyocd/pyOCD/pull/1332
-
# merged into develop
-
(fetchpatch {
-
name = "libusb-package-optional.patch";
-
url = "https://github.com/pyocd/pyOCD/commit/0b980cf253e3714dd2eaf0bddeb7172d14089649.patch";
-
hash = "sha256-B2+50VntcQELeakJbCeJdgI1iBU+h2NkXqba+LRYa/0=";
-
})
-
];
-
pythonRelaxDeps = [ "capstone" ];
pythonRemoveDeps = [ "libusb-package" ];
···
nativeCheckInputs = [ pytestCheckHook ];
-
meta = with lib; {
+
meta = {
changelog = "https://github.com/pyocd/pyOCD/releases/tag/${src.tag}";
description = "Python library for programming and debugging Arm Cortex-M microcontrollers";
downloadPage = "https://github.com/pyocd/pyOCD";
homepage = "https://pyocd.io";
-
license = licenses.asl20;
-
maintainers = with maintainers; [
+
license = lib.licenses.asl20;
+
maintainers = with lib.maintainers; [
frogamic
sbruder
];
+4
pkgs/development/python-modules/spsdk-pyocd/default.nix
···
setuptools
];
+
pythonRelaxDeps = [
+
"pyocd"
+
];
+
dependencies = [
pyocd
];
+6
pkgs/development/python-modules/spsdk/default.nix
···
x690,
# tests
+
cookiecutter,
ipykernel,
pytest-notebook,
pytestCheckHook,
···
click-command-tree
click-option-group
colorama
+
cookiecutter
crcmod
cryptography
deepmerge
···
pythonImportsCheck = [ "spsdk" ];
nativeCheckInputs = [
+
cookiecutter
ipykernel
pytest-notebook
pytestCheckHook
···
disabledTests = [
# Missing rotk private key
"test_general_notebooks"
+
+
# Attempts to access /run
+
"test_nxpimage_famode_export_cli"
];
meta = {