summaryrefslogtreecommitdiff
path: root/nix
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 /nix
parent5562ef96a6b94ec1ce507d3a48d891e1d01142ed (diff)
flake: add pyuvm
Diffstat (limited to 'nix')
-rw-r--r--nix/pyuvm.nix35
1 files changed, 35 insertions, 0 deletions
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;
+ };
+}