diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-12-03 23:56:56 -0800 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-12-03 23:58:27 -0800 |
commit | 3eebbbde10d69a0502b6a12efa3c32c37e62c7d8 (patch) | |
tree | a38d3aeb33e151e4dab40150353afb4fdd491364 /pkgs/development/embedded | |
parent | 76ccdf98c1b7eb44bc0302682995552a0cfb9595 (diff) |
python310Packages.pyocd: move from all-packages
Diffstat (limited to 'pkgs/development/embedded')
-rw-r--r-- | pkgs/development/embedded/pyocd/default.nix | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/pkgs/development/embedded/pyocd/default.nix b/pkgs/development/embedded/pyocd/default.nix deleted file mode 100644 index 52cf703a71aab..0000000000000 --- a/pkgs/development/embedded/pyocd/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, capstone -, cmsis-pack-manager -, colorama -, intelhex -, intervaltree -, natsort -, prettytable -, pyelftools -, pylink-square -, pyusb -, pyyaml -, typing-extensions -, stdenv -, hidapi -, pytestCheckHook -}: - -buildPythonPackage rec { - pname = "pyocd"; - version = "0.34.1"; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-Fpa2IEsLOQ8ylGI/5D6h+22j1pvrvE9IMIyhCtyM6qU="; - }; - - patches = [ - # https://github.com/pyocd/pyOCD/pull/1332 - (fetchpatch { - name = "libusb-package-optional.patch"; - url = "https://github.com/pyocd/pyOCD/commit/0b980cf253e3714dd2eaf0bddeb7172d14089649.patch"; - sha256 = "sha256-B2+50VntcQELeakJbCeJdgI1iBU+h2NkXqba+LRYa/0="; - }) - ]; - - propagatedBuildInputs = [ - capstone - cmsis-pack-manager - colorama - intelhex - intervaltree - natsort - prettytable - pyelftools - pylink-square - pyusb - pyyaml - typing-extensions - ] ++ lib.optionals (!stdenv.isLinux) [ - hidapi - ]; - - checkInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "pyocd" ]; - - postPatch = '' - substituteInPlace setup.cfg \ - --replace "libusb-package>=1.0,<2.0" "" - ''; - - meta = with lib; { - description = "Python library for programming and debugging Arm Cortex-M microcontrollers"; - homepage = "https://pyocd.io/"; - license = licenses.asl20; - maintainers = with maintainers; [ frogamic sbruder ]; - }; -} |