1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 colorama,
7 pytestCheckHook,
8 unstableGitUpdater,
9}:
10
11buildPythonPackage {
12 pname = "migen";
13 version = "0.9.2-unstable-2025-06-10";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "m-labs";
18 repo = "migen";
19 rev = "6e3a9e150fb006dabc4b55043d3af18dbfecd7e8";
20 hash = "sha256-NshlPiORBHWljSUP5bB7YBxe7k8dW0t8UXOsIq2EK8I=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [ colorama ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "migen" ];
30
31 passthru.updateScript = unstableGitUpdater { };
32
33 meta = {
34 description = "Python toolbox for building complex digital hardware";
35 homepage = "https://m-labs.hk/migen";
36 license = lib.licenses.bsd2;
37 maintainers = with lib.maintainers; [ l-as ];
38 };
39}