2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyserial,
|
|
|
|
asyncserial,
|
|
|
|
jinja2,
|
|
|
|
migen,
|
|
|
|
numpy,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "misoc";
|
|
|
|
version = "unstable-2022-10-08";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "misoc";
|
|
|
|
rev = "6a7c670ab6120b8136f652c41d907eb0fb16ed54";
|
|
|
|
hash = "sha256-dLDp0xg5y5b443hD7vbJFobHxbhtnj68RdZnQ7ckgp4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
asyncserial
|
|
|
|
jinja2
|
|
|
|
migen
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ numpy ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "misoc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The original high performance and small footprint system-on-chip based on Migen";
|
|
|
|
homepage = "https://github.com/m-labs/misoc";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|