python312Packages.verilogae: init at 1.0.0

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
Jason Odoom
2024-10-22 01:53:35 +02:00
committed by Weijia Wang
co-authored by Weijia Wang
parent 99729d564d
commit 26f54e81f9
3 changed files with 1850 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,79 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-rust,
rustPlatform,
cargo,
rustc,
autoPatchelfHook,
pkg-config,
llvmPackages_15,
libxml2,
ncurses,
zlib,
}:
buildPythonPackage rec {
pname = "verilogae";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pascalkuthe";
repo = "OpenVAF";
rev = "VerilogAE-v${version}";
hash = "sha256-TILKKmgSyhyxp88sdflDXAoH++iP6CMpdoXN1/1fsjU=";
};
postPatch = ''
substituteInPlace openvaf/llvm/src/initialization.rs \
--replace-fail "i8" "libc::c_char"
substituteInPlace openvaf/osdi/build.rs \
--replace-fail "-fPIC" ""
'';
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"salsa-0.17.0-pre.2" = "sha256-6GssvV76lFr5OzAUekz2h6f82Tn7usz5E8MSZ5DmgJw=";
};
};
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
rustPlatform.bindgenHook
cargo
rustc
autoPatchelfHook
pkg-config
llvmPackages_15.clang
llvmPackages_15.llvm
];
buildInputs = [
libxml2.dev
llvmPackages_15.libclang
ncurses
zlib
];
cargoBuildType = "release";
pythonImportsCheck = [ "verilogae" ];
hardeningDisable = [ "pic" ];
meta = {
description = "Verilog-A tool useful for compact model parameter extraction";
homepage = "https://man.sr.ht/~dspom/openvaf_doc/verilogae/";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
jasonodoom
jleightcap
];
platforms = lib.platforms.linux;
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
};
}
+2
View File
@@ -17199,6 +17199,8 @@ self: super: with self; {
verboselogs = callPackage ../development/python-modules/verboselogs { };
verilogae = callPackage ../development/python-modules/verilogae { };
verlib2 = callPackage ../development/python-modules/verlib2 { };
versioneer = callPackage ../development/python-modules/versioneer { };