groovylight/litex/litespi.nix
Saji ccdbc98cb0
Some checks failed
Verilator Unit Tests / Test (push) Failing after 3m35s
add flake/nix formatter (nixfmt)
2024-09-26 01:46:28 -05:00

32 lines
480 B
Nix

tag:
{
pkgs,
lib,
buildPythonPackage,
migen,
setuptools,
litex,
}:
buildPythonPackage {
pname = "litespi";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";
repo = "litespi";
rev = "${tag}";
hash = "sha256-XYeWokF1IGtZWRK+6jhRSN91MOV5vyh5aO08sbtFBxw=";
};
buildInputs = [ litex ];
propagatedBuildInputs = [ migen ];
nativeCheckInputs = [ ];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}