2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cocotb-bus";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "a197aa4b0e0ad28469c8877b41b3fb2ec0206da9f491b9276d1578ce6dd8aa8d";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|