18 buildPythonPackage rec {
19 pname = "cmsis-pack-manager";
23 src = fetchFromGitHub {
25 repo = "cmsis-pack-manager";
27 hash = "sha256-PeyJf3TGUxv8/MKIQUgWrenrK4Hb+4cvtDA2h3r6kGg=";
30 cargoDeps = rustPlatform.fetchCargoTarball {
32 hash = "sha256-dO4qw5Jx0exwb4RuOhu6qvGxQZ+LayHtXDHZKADLTEI=";
36 rustPlatform.cargoSetupHook
37 rustPlatform.maturinBuildHook
39 propagatedNativeBuildInputs = [ cffi ];
42 ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
43 propagatedBuildInputs = [
54 # remove cmsis_pack_manager source directory so that binaries can be imported
55 # from the installed wheel instead
57 rm -r cmsis_pack_manager
69 description = "Rust and Python module for handling CMSIS Pack files";
70 homepage = "https://github.com/pyocd/cmsis-pack-manager";
71 license = licenses.asl20;
72 maintainers = with maintainers; [