Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pkgs/development/python-modules/scikit-rf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ buildPythonPackage rec {
];

# test_calibration.py generates a divide by zero error on darwin
# and fails on Linux after updates of dependenceis
# https://github.com/scikit-rf/scikit-rf/issues/972
disabledTestPaths = lib.optional (
stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin
) "skrf/calibration/tests/test_calibration.py";
disabledTestPaths = [
"skrf/calibration/tests/test_calibration.py"
];

pythonImportsCheck = [ "skrf" ];

Expand Down
27 changes: 12 additions & 15 deletions pkgs/development/python-modules/verilogae/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,35 @@
rustPlatform,
cargo,
rustc,
autoPatchelfHook,
pkg-config,
llvmPackages_15,
llvmPackages,
libxml2,
ncurses,
zlib,
}:

buildPythonPackage rec {
pname = "verilogae";
version = "1.0.0";
version = "24.0.0mob-unstable-2025-07-21";
pyproject = true;

stdenv = llvmPackages.stdenv;

src = fetchFromGitHub {
owner = "pascalkuthe";
repo = "OpenVAF";
rev = "VerilogAE-v${version}";
hash = "sha256-TILKKmgSyhyxp88sdflDXAoH++iP6CMpdoXN1/1fsjU=";
owner = "OpenVAF";
repo = "OpenVAF-Reloaded";
rev = "d878f5519b1767b64c6ebeb4d67e29e7cd46e60b";
hash = "sha256-TDE2Ewokhm2KSKe+sunUbV8KD3kaTSd5dB3CLCWGJ9U=";
};

postPatch = ''
substituteInPlace openvaf/llvm/src/initialization.rs \
--replace-fail "i8" "libc::c_char"
substituteInPlace openvaf/osdi/build.rs \
--replace-fail "-fPIC" ""
'';

cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-/gSqaxqOZUkUmJJ5PGMkAG/5PSeAjwDjT2ce+tL7xmY";
hash = "sha256-5SLrVL3h6+tptHv3GV7r8HUTrYQC9VdF68O2/Uct3xA=";
};

nativeBuildInputs = [
Expand All @@ -44,15 +43,13 @@ buildPythonPackage rec {
rustPlatform.bindgenHook
cargo
rustc
autoPatchelfHook
pkg-config
llvmPackages_15.clang
llvmPackages_15.llvm
llvmPackages.llvm
];

buildInputs = [
libxml2.dev
llvmPackages_15.libclang
llvmPackages.libclang
ncurses
zlib
];
Expand All @@ -71,7 +68,7 @@ buildPythonPackage rec {
jasonodoom
jleightcap
];
platforms = lib.platforms.linux;
platforms = lib.platforms.unix;
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
};
}
Loading