groovylight/litex/liteeth.nix
2024-04-19 15:13:39 +00:00

37 lines
514 B
Nix

tag: {
pkgs
, lib
, buildPythonPackage
, migen
, setuptools
, litex
, pyyaml
}: buildPythonPackage {
pname = "liteeth";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "liteeth";
rev = "${tag}";
hash = "sha256-DUNwDzcFLVmL5F/ZWmok7T7jO7ixC9IuDr1WUarnAqk=";
};
buildInputs = [
litex
];
propagatedBuildInputs = [
migen
];
nativeCheckInputs = [
pyyaml
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}