From 59c39fa8b71ca0cb6b1b1f3d3cd03f75467c73b3 Mon Sep 17 00:00:00 2001 From: Jason Odoom Date: Tue, 20 Aug 2024 01:54:25 -0400 Subject: [PATCH] python312Packages.verilogae: init at 1.0.0 --- .../python-modules/verilogae/Cargo.lock | 1323 +++++++++++++++++ .../python-modules/verilogae/default.nix | 104 ++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 1429 insertions(+) create mode 100644 pkgs/development/python-modules/verilogae/Cargo.lock create mode 100644 pkgs/development/python-modules/verilogae/default.nix diff --git a/pkgs/development/python-modules/verilogae/Cargo.lock b/pkgs/development/python-modules/verilogae/Cargo.lock new file mode 100644 index 00000000000000..51a5bdaae10014 --- /dev/null +++ b/pkgs/development/python-modules/verilogae/Cargo.lock @@ -0,0 +1,1323 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom", + "once_cell", + "version_check", +] + +[[package]] +name = "anyhow" +version = "1.0.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" + +[[package]] +name = "arc-swap" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f" + +[[package]] +name = "arena" +version = "0.0.0" +dependencies = [ + "typed-index-collections", +] + +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "base_n" +version = "1.0.0" + +[[package]] +name = "basedb" +version = "0.0.0" +dependencies = [ + "ahash", + "arena", + "codespan-reporting", + "expect-test", + "indexmap", + "parking_lot", + "proc-macro2", + "quote", + "salsa", + "sourcegen", + "stdx", + "syntax", + "text-size", + "typed-index-collections", + "vfs", +] + +[[package]] +name = "bforest" +version = "0.0.0" +dependencies = [ + "stdx", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitset" +version = "0.0.0" +dependencies = [ + "arrayvec", + "stdx", +] + +[[package]] +name = "cc" +version = "1.0.73" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "3.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54635806b078b7925d6e36810b1755f2a4b5b4d57560432c1ecf60bcbe10602b" +dependencies = [ + "atty", + "bitflags", + "clap_lex", + "indexmap", + "strsim", + "termcolor", + "textwrap", +] + +[[package]] +name = "clap_lex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" +dependencies = [ + "os_str_bytes", +] + +[[package]] +name = "codespan-reporting" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +dependencies = [ + "termcolor", + "unicode-width", +] + +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" + +[[package]] +name = "crossbeam-channel" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c02a4d71819009c192cf4872265391563fd6a84c81ff2c0f2a7026ca4c1d85c" +dependencies = [ + "cfg-if", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07db9d94cbd326813772c968ccd25999e5f8ae22f4f8d1b11effa37ef6ce281d" +dependencies = [ + "autocfg", + "cfg-if", + "crossbeam-utils", + "memoffset", + "once_cell", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d82ee10ce34d7bc12c2122495e7593a9c41347ecdd64185af4ecf72cb1a7f83" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "dashmap" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" +dependencies = [ + "cfg-if", + "num_cpus", +] + +[[package]] +name = "directories-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc" +dependencies = [ + "cfg-if", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users", + "winapi", +] + +[[package]] +name = "dissimilar" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c97b9233581d84b8e1e689cdd3a47b6f69770084fc246e86a7f78b0d9c1d4a5" + +[[package]] +name = "dot" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a74b6c4d4a1cff5f454164363c16b72fa12463ca6b31f4b5f2035a65fa3d5906" + +[[package]] +name = "drop_bomb" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bda8e21c04aca2ae33ffc2fd8c23134f3cac46db123ba97bd9d3f3b8a4a85e1" + +[[package]] +name = "expect-test" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d4661aca38d826eb7c72fe128e4238220616de4c0cc00db7bfc38e2e1364dd3" +dependencies = [ + "dissimilar", + "once_cell", +] + +[[package]] +name = "float-cmp" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" +dependencies = [ + "num-traits", +] + +[[package]] +name = "getrandom" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashlink" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7249a3129cbc1ffccd74857f81464a323a152173cdb134e0fd81bc803b29facf" +dependencies = [ + "hashbrown 0.11.2", +] + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hir_def" +version = "0.0.0" +dependencies = [ + "ahash", + "arena", + "basedb", + "expect-test", + "indexmap", + "once_cell", + "parking_lot", + "proc-macro2", + "quote", + "salsa", + "sourcegen", + "stdx", + "syntax", + "text-size", + "typed-index-collections", +] + +[[package]] +name = "hir_lower" +version = "0.0.0" +dependencies = [ + "ahash", + "basedb", + "bitset", + "expect-test", + "hir_def", + "hir_ty", + "indexmap", + "lasso", + "mir", + "mir_build", + "parking_lot", + "proc-macro2", + "quote", + "salsa", + "sourcegen", + "stdx", + "syntax", + "typed-index-collections", + "typed_indexmap", +] + +[[package]] +name = "hir_ty" +version = "0.0.0" +dependencies = [ + "ahash", + "arena", + "arrayvec", + "basedb", + "expect-test", + "hir_def", + "indexmap", + "parking_lot", + "proc-macro2", + "quote", + "salsa", + "smol_str", + "sourcegen", + "stdx", + "syntax", + "text-size", + "typed-index-collections", +] + +[[package]] +name = "indexmap" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", +] + +[[package]] +name = "lasso" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb7b21a526375c5ca55f1a6dfd4e1fad9fa4edd750f530252a718a44b2608f0" +dependencies = [ + "ahash", + "hashbrown 0.11.2", +] + +[[package]] +name = "lexer" +version = "0.0.0" +dependencies = [ + "expect-test", + "text-size", + "tokens", +] + +[[package]] +name = "libc" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" + +[[package]] +name = "libloading" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libmimalloc-sys" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ca136052550448f55df7898c6dbe651c6b574fe38a0d9ea687a9f8088a2e2c" +dependencies = [ + "cc", +] + +[[package]] +name = "linker" +version = "0.0.0" +dependencies = [ + "anyhow", + "libc", + "target", +] + +[[package]] +name = "list_pool" +version = "0.0.0" +dependencies = [ + "stdx", +] + +[[package]] +name = "llvm" +version = "0.0.0" +dependencies = [ + "ahash", + "cc", + "libc", +] + +[[package]] +name = "lock_api" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "md5" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" + +[[package]] +name = "memoffset" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mimalloc" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f64ad83c969af2e732e907564deb0d0ed393cec4af80776f77dd77a1a427698" +dependencies = [ + "libmimalloc-sys", +] + +[[package]] +name = "mir" +version = "0.0.0" +dependencies = [ + "ahash", + "bforest", + "bitset", + "dot", + "expect-test", + "lasso", + "list_pool", + "proc-macro2", + "quote", + "sourcegen", + "stdx", + "typed-index-collections", + "typed_indexmap", +] + +[[package]] +name = "mir_autodiff" +version = "0.0.0" +dependencies = [ + "ahash", + "arena", + "arrayvec", + "bforest", + "bitset", + "expect-test", + "float-cmp", + "indexmap", + "list_pool", + "mir", + "mir_interpret", + "mir_reader", + "stdx", + "typed-index-collections", + "typed_indexmap", + "workqueue", +] + +[[package]] +name = "mir_build" +version = "0.0.0" +dependencies = [ + "ahash", + "bforest", + "bitset", + "expect-test", + "indexmap", + "lasso", + "list_pool", + "mir", + "mir_reader", + "smallvec", + "stdx", + "typed-index-collections", + "typed_indexmap", +] + +[[package]] +name = "mir_interpret" +version = "0.0.0" +dependencies = [ + "lasso", + "list_pool", + "mir", + "stdx", + "typed-index-collections", +] + +[[package]] +name = "mir_llvm" +version = "0.0.0" +dependencies = [ + "ahash", + "arrayvec", + "base_n", + "lasso", + "libc", + "llvm", + "mir", + "stdx", + "target", + "typed-index-collections", +] + +[[package]] +name = "mir_opt" +version = "0.0.0" +dependencies = [ + "ahash", + "bforest", + "bitset", + "dot", + "expect-test", + "hashbrown 0.12.3", + "indexmap", + "list_pool", + "mir", + "mir_reader", + "stdx", + "typed-index-collections", + "workqueue", +] + +[[package]] +name = "mir_reader" +version = "0.0.0" +dependencies = [ + "bforest", + "expect-test", + "lasso", + "list_pool", + "mir", + "stdx", + "typed-index-collections", +] + +[[package]] +name = "num-traits" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_cpus" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "once_cell" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" + +[[package]] +name = "oorandom" +version = "11.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" + +[[package]] +name = "openvaf-driver" +version = "0.1.2" +dependencies = [ + "ahash", + "anyhow", + "base_n", + "basedb", + "clap", + "directories-next", + "hir_def", + "hir_lower", + "hir_ty", + "indexmap", + "lasso", + "linker", + "llvm", + "md5", + "mimalloc", + "mir_llvm", + "osdi", + "parking_lot", + "path-absolutize", + "paths", + "sim_back", + "stdx", + "syntax", + "target", + "termcolor", + "typed-index-collections", + "typed_indexmap", +] + +[[package]] +name = "os_str_bytes" +version = "6.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "648001efe5d5c0102d8cea768e348da85d90af8ba91f0bea908f157951493cd4" + +[[package]] +name = "osdi" +version = "0.0.0" +dependencies = [ + "ahash", + "anyhow", + "base_n", + "basedb", + "bitset", + "expect-test", + "float-cmp", + "hir_def", + "hir_lower", + "hir_ty", + "indexmap", + "lasso", + "llvm", + "mir", + "mir_autodiff", + "mir_interpret", + "mir_llvm", + "mir_opt", + "parking_lot", + "paths", + "proc-macro2", + "quote", + "rayon-core", + "salsa", + "sim_back", + "smol_str", + "sourcegen", + "stdx", + "syntax", + "target", + "typed-index-collections", + "typed_indexmap", + "xshell", +] + +[[package]] +name = "parking_lot" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-sys", +] + +[[package]] +name = "parser" +version = "0.0.0" +dependencies = [ + "drop_bomb", + "stdx", + "tokens", +] + +[[package]] +name = "path-absolutize" +version = "3.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3de4b40bd9736640f14c438304c09538159802388febb02c8abaae0846c1f13" +dependencies = [ + "path-dedot", +] + +[[package]] +name = "path-dedot" +version = "3.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d611d5291372b3738a34ebf0d1f849e58b1dcc1101032f76a346eaa1f8ddbb5b" +dependencies = [ + "once_cell", +] + +[[package]] +name = "paths" +version = "0.0.0" + +[[package]] +name = "preprocessor" +version = "0.0.0" +dependencies = [ + "ahash", + "expect-test", + "lexer", + "stdx", + "text-size", + "tokens", + "typed-index-collections", + "vfs", +] + +[[package]] +name = "proc-macro2" +version = "1.0.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pyo3-build-config" +version = "0.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b65b546c35d8a3b1b2f0ddbac7c6a569d759f357f2b9df884f5d6b719152c8" +dependencies = [ + "once_cell", + "target-lexicon", +] + +[[package]] +name = "pyo3-ffi" +version = "0.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c275a07127c1aca33031a563e384ffdd485aee34ef131116fcd58e3430d1742b" +dependencies = [ + "libc", + "pyo3-build-config", +] + +[[package]] +name = "quote" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rayon-core" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "num_cpus", +] + +[[package]] +name = "redox_syscall" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" +dependencies = [ + "getrandom", + "redox_syscall", + "thiserror", +] + +[[package]] +name = "rowan" +version = "0.15.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf980f4bf24d4ea266da37ce8f0e6bfd6eaf06120dcfba53c3e2ad6bdfe5f32b" +dependencies = [ + "countme", + "hashbrown 0.12.3", + "memoffset", + "rustc-hash", + "text-size", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "salsa" +version = "0.17.0-pre.2" +source = "git+https://github.com/DSPOM2/salsa#73532d7d4d8b5b27f2c9f189a76e012d1fc4de09" +dependencies = [ + "arc-swap", + "crossbeam-utils", + "dashmap", + "hashlink", + "indexmap", + "lock_api", + "log", + "oorandom", + "parking_lot", + "rustc-hash", + "salsa-macros", + "smallvec", +] + +[[package]] +name = "salsa-macros" +version = "0.17.0-pre.2" +source = "git+https://github.com/DSPOM2/salsa#73532d7d4d8b5b27f2c9f189a76e012d1fc4de09" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "sim_back" +version = "0.0.0" +dependencies = [ + "ahash", + "anyhow", + "basedb", + "bitset", + "expect-test", + "float-cmp", + "hir_def", + "hir_lower", + "hir_ty", + "indexmap", + "lasso", + "mir", + "mir_autodiff", + "mir_interpret", + "mir_opt", + "parking_lot", + "paths", + "proc-macro2", + "quote", + "salsa", + "smol_str", + "sourcegen", + "stdx", + "syntax", + "target", + "typed-index-collections", + "typed_indexmap", + "workqueue", +] + +[[package]] +name = "smallvec" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1" + +[[package]] +name = "smol_str" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7475118a28b7e3a2e157ce0131ba8c5526ea96e90ee601d9f6bb2e286a35ab44" + +[[package]] +name = "sourcegen" +version = "0.0.0" +dependencies = [ + "xshell", +] + +[[package]] +name = "stdx" +version = "0.0.0" + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "syn" +version = "1.0.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syntax" +version = "0.0.0" +dependencies = [ + "parser", + "preprocessor", + "proc-macro2", + "quote", + "rowan", + "smol_str", + "sourcegen", + "stdx", + "text-size", + "tokens", + "ungrammar", + "vfs", +] + +[[package]] +name = "target" +version = "0.0.0" + +[[package]] +name = "target-lexicon" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1" + +[[package]] +name = "termcolor" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "text-size" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "288cb548dbe72b652243ea797201f3d481a0609a967980fcc5b2315ea811560a" + +[[package]] +name = "textwrap" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" + +[[package]] +name = "thiserror" +version = "1.0.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokens" +version = "0.0.0" +dependencies = [ + "text-size", +] + +[[package]] +name = "typed-index-collections" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2198514940bb6574216fde5d5c349c3f578fa719b225352f0eaaf45983c930" + +[[package]] +name = "typed_indexmap" +version = "0.0.0" +dependencies = [ + "ahash", + "indexmap", +] + +[[package]] +name = "ungrammar" +version = "1.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e5df347f0bf3ec1d670aad6ca5c6a1859cd9ea61d2113125794654ccced68f" + +[[package]] +name = "unicode-ident" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7" + +[[package]] +name = "unicode-segmentation" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" + +[[package]] +name = "unicode-width" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" + +[[package]] +name = "verilogae" +version = "0.9.0-beta8" +dependencies = [ + "ahash", + "anyhow", + "arrayvec", + "base_n", + "basedb", + "bitset", + "directories-next", + "hir_def", + "hir_lower", + "hir_ty", + "indexmap", + "lasso", + "libloading", + "linker", + "llvm", + "md5", + "mir", + "mir_autodiff", + "mir_llvm", + "mir_opt", + "parking_lot", + "paths", + "rayon-core", + "salsa", + "smol_str", + "stdx", + "syntax", + "target", + "termcolor", + "typed-index-collections", + "typed_indexmap", +] + +[[package]] +name = "verilogae_ffi" +version = "0.9.0-beta8" +dependencies = [ + "sourcegen", + "verilogae", + "xshell", +] + +[[package]] +name = "verilogae_py" +version = "0.9.0-beta8" +dependencies = [ + "ahash", + "libc", + "pyo3-build-config", + "pyo3-ffi", + "verilogae_ffi", +] + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "vfs" +version = "0.0.0" +dependencies = [ + "ahash", + "indexmap", + "paths", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +dependencies = [ + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" + +[[package]] +name = "windows_i686_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" + +[[package]] +name = "windows_i686_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" + +[[package]] +name = "workqueue" +version = "0.0.0" +dependencies = [ + "bitset", +] + +[[package]] +name = "xflags" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f14fe1ed41a5a2b5ef3f565586c4a8a559ee55d3953faab360a771135bdee00" +dependencies = [ + "xflags-macros", +] + +[[package]] +name = "xflags-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45d11d5fc2a97287eded8b170ca80533b3c42646dd7fa386a5eb045817921022" + +[[package]] +name = "xshell" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d47097dc5c85234b1e41851b3422dd6d19b3befdd35b4ae5ce386724aeca981" +dependencies = [ + "xshell-macros", +] + +[[package]] +name = "xshell-macros" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88301b56c26dd9bf5c43d858538f82d6f3f7764767defbc5d34e59459901c41a" + +[[package]] +name = "xtask" +version = "0.1.0" +dependencies = [ + "anyhow", + "base_n", + "md5", + "xflags", + "xshell", +] diff --git a/pkgs/development/python-modules/verilogae/default.nix b/pkgs/development/python-modules/verilogae/default.nix new file mode 100644 index 00000000000000..a25467d395baca --- /dev/null +++ b/pkgs/development/python-modules/verilogae/default.nix @@ -0,0 +1,104 @@ +{ + buildPythonPackage, + fetchFromSourcehut, + stdenv, + llvmPackages, + rustc, + patchelf, + python, + setuptools-rust, + cargo, + clang, + rustPlatform, + lib, + zlib, + ncurses, + libxml2, + pkg-config, + pkgs, +}: + +buildPythonPackage rec { + pname = "verilogae"; + version = "0.9-beta-8"; + + src = fetchFromSourcehut { + owner = "~dspom"; + repo = "OpenVAF"; + rev = "b800153e84a8a640b07048d580fabafc25bbc841"; + hash = "sha256-NKiJrXnxwghNYtKL4s3YjvQd/r3QWe5saCYp4N4aQ8w="; + }; + + format = "other"; + + cargoDeps = rustPlatform.importCargoLock { + lockFile = ./Cargo.lock; + outputHashes = { + "salsa-0.17.0-pre.2" = "sha256-6GssvV76lFr5OzAUekz2h6f82Tn7usz5E8MSZ5DmgJw="; + }; + }; + + buildInputs = [ + llvmPackages.libllvm + pkgs.libxml2 + ncurses.dev + zlib + ]; + + nativeBuildInputs = [ + cargo + clang + rustPlatform.cargoSetupHook + rustPlatform.bindgenHook + rustc + llvmPackages.libllvm + llvmPackages.clang + setuptools-rust + libxml2 + ncurses + zlib + patchelf + pkg-config + ]; + + configurePhase = "true"; + + preBuild = '' + echo "Running preBuild hook" + export RUSTFLAGS="-C link-arg=-L${llvmPackages.libllvm}/lib" + export LD_LIBRARY_PATH="${llvmPackages.libllvm}/lib:${pkgs.libxml2}/lib:${ncurses.dev}/lib:$LD_LIBRARY_PATH" + export PKG_CONFIG_PATH="${pkgs.libxml2}/lib/pkgconfig:${ncurses.dev}/lib/pkgconfig:$PKG_CONFIG_PATH" + ''; + + buildPhase = '' + echo "Building with cargo..." + cargo build --release --verbose + ''; + + installPhase = '' + install -D target/release/*.so $out/${python.sitePackages}/verilogae/ || echo "No shared objects found in target/release" + + echo "Patching ELF binaries" + for shared_object in $out/${python.sitePackages}/verilogae/*.so; do + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath $LD_LIBRARY_PATH $shared_object + done + ''; + + postInstall = '' + echo "Running postInstall hook" + ''; + + pythonImportsCheck = [ "verilogae" ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cd7c531ef434b6..b28215ab498158 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17203,6 +17203,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 { };