summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-04-03 05:50:55 -0600
committerAlejandro Soto <alejandro@34project.org>2024-04-03 05:50:55 -0600
commitdc0262c63df60987ec64ce8e8df09359310d7a3d (patch)
treeb42d425bd25d01e18af55372c0d571c33065ec95
parent5562ef96a6b94ec1ce507d3a48d891e1d01142ed (diff)
flake: add pyuvm
-rw-r--r--flake.nix1
-rw-r--r--nix/pyuvm.nix35
2 files changed, 36 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 7dc5372..dd7a173 100644
--- a/flake.nix
+++ b/flake.nix
@@ -146,6 +146,7 @@
numpy
pillow
pytest # Para cocotb
+ (py.callPackage ./nix/pyuvm.nix { })
]))
(quartus-prime-lite.override { supportedDevices = [ "Cyclone V" ]; })
verilator
diff --git a/nix/pyuvm.nix b/nix/pyuvm.nix
new file mode 100644
index 0000000..a77b20e
--- /dev/null
+++ b/nix/pyuvm.nix
@@ -0,0 +1,35 @@
+{ buildPythonPackage
+, cocotb
+, fetchPypi
+, lib
+, pylint
+, pytest
+, sphinx
+}: let
+ pname = "pyuvm";
+ version = "2.9.1";
+in buildPythonPackage {
+ inherit pname version;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "sha256-2Td+rRsgygwZ7iHY7LzfQRlJ0oxJ49URn4A+EgaeKuo=";
+ };
+
+ propagatedBuildInputs = [
+ cocotb
+ pytest
+ ];
+
+ propagatedNativeBuildInputs = [
+ pylint
+ sphinx
+ ];
+
+ meta = {
+ description = "pyuvm is the Universal Verification Methodology implemented in Python instead of SystemVerilog";
+ changelog = "https://github.com/pyuvm/pyuvm/releases/tag/${version}";
+ homepage = "https://github.com/pyuvm/pyuvm";
+ license = lib.licenses.asl20;
+ };
+}