2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
colorama,
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
buildPythonPackage {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "migen";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "unstable-2024-07-21";
|
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "migen";
|
2024-07-31 10:19:44 +00:00
|
|
|
rev = "9279e8623f8433bc4f23ac51e5e2331bfe544417";
|
|
|
|
hash = "sha256-z3LRhNmKZrjr6rFD0yxtccSa/SWvFIYmb+G/D5d2Jd8=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ colorama ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pythonImportsCheck = [ "migen" ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
meta = {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = " A Python toolbox for building complex digital hardware";
|
|
|
|
homepage = "https://m-labs.hk/migen";
|
2024-07-31 10:19:44 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ l-as ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|