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