python3Packages.cocotb-bus: init at 0.1.1
This commit is contained in:
parent
dbfdb51933
commit
ff555e8f88
2 changed files with 37 additions and 0 deletions
35
pkgs/development/python-modules/cocotb-bus/default.nix
Normal file
35
pkgs/development/python-modules/cocotb-bus/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cocotb-bus";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cc9b0bb00c95061a67f650caf96e3a294bb74ef437124dea456dd9e2a9431854";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# remove circular dependency cocotb from setup.py
|
||||
substituteInPlace setup.py --replace '"cocotb>=1.5.0.dev,<2.0"' ""
|
||||
'';
|
||||
|
||||
# tests require cocotb, disable for now to avoid circular dependency
|
||||
doCheck = false;
|
||||
|
||||
# checkPhase = ''
|
||||
# export PATH=$out/bin:$PATH
|
||||
# make test
|
||||
# '';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb";
|
||||
homepage = "https://github.com/cocotb/cocotb-bus";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
|
@ -1463,6 +1463,8 @@ in {
|
|||
|
||||
cocotb = callPackage ../development/python-modules/cocotb { };
|
||||
|
||||
cocotb-bus = callPackage ../development/python-modules/cocotb-bus { };
|
||||
|
||||
codecov = callPackage ../development/python-modules/codecov { };
|
||||
|
||||
codespell = callPackage ../development/python-modules/codespell { };
|
||||
|
|
Loading…
Reference in a new issue