groovylight/litex/litespi.nix

32 lines
480 B
Nix
Raw Permalink Normal View History

2024-09-26 06:45:57 +00:00
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=";
};
2024-09-26 06:45:57 +00:00
buildInputs = [ litex ];
2024-09-26 06:45:57 +00:00
propagatedBuildInputs = [ migen ];
2024-09-26 06:45:57 +00:00
nativeCheckInputs = [ ];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}