groovylight/litex/liteiclink.nix

25 lines
399 B
Nix
Raw Normal View History

tag: {
pkgs
, buildPythonPackage
, litex
}: buildPythonPackage {
pname = "liteiclink";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "liteiclink";
rev = "${tag}";
hash = "sha256-5Hp5vFqmfkXo1q60FvOkToTy952svirChIPIvkam04M=";
};
buildInputs = [
litex
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}