2024-09-26 06:45:57 +00:00
|
|
|
tag:
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
migen,
|
|
|
|
setuptools,
|
|
|
|
litex,
|
|
|
|
}:
|
|
|
|
buildPythonPackage {
|
2024-04-19 20:06:31 +00:00
|
|
|
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-04-19 20:06:31 +00:00
|
|
|
|
2024-09-26 06:45:57 +00:00
|
|
|
propagatedBuildInputs = [ migen ];
|
2024-04-19 20:06:31 +00:00
|
|
|
|
2024-09-26 06:45:57 +00:00
|
|
|
nativeCheckInputs = [ ];
|
2024-04-19 20:06:31 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
python -m unittest test
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
}
|