Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00

76 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
cffi,
libiconv,
buildPythonPackage,
appdirs,
pyyaml,
hypothesis,
jinja2,
pytestCheckHook,
unzip,
}:
buildPythonPackage rec {
pname = "cmsis-pack-manager";
version = "0.5.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "pyocd";
repo = "cmsis-pack-manager";
tag = "v${version}";
hash = "sha256-PeyJf3TGUxv8/MKIQUgWrenrK4Hb+4cvtDA2h3r6kGg=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-OBh5WWSekrqdLLmxEXS0LfPIfy4QWKYgO+8o6PYWjN4=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
propagatedNativeBuildInputs = [ cffi ];
buildInputs = [
libiconv
];
propagatedBuildInputs = [
appdirs
pyyaml
];
nativeCheckInputs = [
hypothesis
jinja2
pytestCheckHook
unzip
];
# remove cmsis_pack_manager source directory so that binaries can be imported
# from the installed wheel instead
preCheck = ''
rm -r cmsis_pack_manager
'';
disabledTests = [
# All require DNS.
"test_pull_pdscs"
"test_install_pack"
"test_pull_pdscs_cli"
"test_dump_parts_cli"
];
meta = with lib; {
description = "Rust and Python module for handling CMSIS Pack files";
homepage = "https://github.com/pyocd/cmsis-pack-manager";
license = licenses.asl20;
maintainers = with maintainers; [
frogamic
sbruder
];
};
}