27 buildPythonPackage rec {
33 inherit pname version;
34 hash = "sha256-k3eCrMna/wVNUPt8b3iM2UqE+A8LhfJarKuZ3Jgihkg=";
38 # https://github.com/pyocd/pyOCD/pull/1332
40 name = "libusb-package-optional.patch";
41 url = "https://github.com/pyocd/pyOCD/commit/0b980cf253e3714dd2eaf0bddeb7172d14089649.patch";
42 hash = "sha256-B2+50VntcQELeakJbCeJdgI1iBU+h2NkXqba+LRYa/0=";
47 substituteInPlace setup.cfg \
48 --replace "libusb-package>=1.0,<2.0" ""
56 propagatedBuildInputs = [
72 ] ++ lib.optionals (!stdenv.isLinux) [
76 pythonImportsCheck = [
85 changelog = "https://github.com/pyocd/pyOCD/releases/tag/v${version}";
86 description = "Python library for programming and debugging Arm Cortex-M microcontrollers";
87 downloadPage = "https://github.com/pyocd/pyOCD";
88 homepage = "https://pyocd.io";
89 license = licenses.asl20;
90 maintainers = with maintainers; [ frogamic sbruder ];