python313Packages.verilogae: switch to maintained fork (#435932)

This commit is contained in:
Emily
2025-09-04 15:33:04 +01:00
committed by GitHub
2 changed files with 16 additions and 18 deletions

View File

@@ -78,10 +78,11 @@ buildPythonPackage rec {
]; ];
# test_calibration.py generates a divide by zero error on darwin # 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 # https://github.com/scikit-rf/scikit-rf/issues/972
disabledTestPaths = lib.optional ( disabledTestPaths = [
stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin "skrf/calibration/tests/test_calibration.py"
) "skrf/calibration/tests/test_calibration.py"; ];
pythonImportsCheck = [ "skrf" ]; pythonImportsCheck = [ "skrf" ];

View File

@@ -6,9 +6,8 @@
rustPlatform, rustPlatform,
cargo, cargo,
rustc, rustc,
autoPatchelfHook,
pkg-config, pkg-config,
llvmPackages_15, llvmPackages,
libxml2, libxml2,
ncurses, ncurses,
zlib, zlib,
@@ -16,26 +15,26 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "verilogae"; pname = "verilogae";
version = "1.0.0"; version = "24.0.0mob-unstable-2025-07-21";
pyproject = true; pyproject = true;
stdenv = llvmPackages.stdenv;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pascalkuthe"; owner = "OpenVAF";
repo = "OpenVAF"; repo = "OpenVAF-Reloaded";
rev = "VerilogAE-v${version}"; rev = "d878f5519b1767b64c6ebeb4d67e29e7cd46e60b";
hash = "sha256-TILKKmgSyhyxp88sdflDXAoH++iP6CMpdoXN1/1fsjU="; hash = "sha256-TDE2Ewokhm2KSKe+sunUbV8KD3kaTSd5dB3CLCWGJ9U=";
}; };
postPatch = '' postPatch = ''
substituteInPlace openvaf/llvm/src/initialization.rs \
--replace-fail "i8" "libc::c_char"
substituteInPlace openvaf/osdi/build.rs \ substituteInPlace openvaf/osdi/build.rs \
--replace-fail "-fPIC" "" --replace-fail "-fPIC" ""
''; '';
cargoDeps = rustPlatform.fetchCargoVendor { cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src; inherit pname version src;
hash = "sha256-/gSqaxqOZUkUmJJ5PGMkAG/5PSeAjwDjT2ce+tL7xmY"; hash = "sha256-5SLrVL3h6+tptHv3GV7r8HUTrYQC9VdF68O2/Uct3xA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@@ -44,15 +43,13 @@ buildPythonPackage rec {
rustPlatform.bindgenHook rustPlatform.bindgenHook
cargo cargo
rustc rustc
autoPatchelfHook
pkg-config pkg-config
llvmPackages_15.clang llvmPackages.llvm
llvmPackages_15.llvm
]; ];
buildInputs = [ buildInputs = [
libxml2.dev libxml2.dev
llvmPackages_15.libclang llvmPackages.libclang
ncurses ncurses
zlib zlib
]; ];
@@ -71,7 +68,7 @@ buildPythonPackage rec {
jasonodoom jasonodoom
jleightcap jleightcap
]; ];
platforms = lib.platforms.linux; platforms = lib.platforms.unix;
sourceProvenance = [ lib.sourceTypes.binaryBytecode ]; sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
}; };
} }