2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }:
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "greatfet";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "2019.5.1.dev0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greatscottgadgets";
|
|
|
|
repo = "greatfet";
|
2021-02-13 14:23:35 +00:00
|
|
|
rev = "v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future pyusb ipython pygreat ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd host
|
|
|
|
echo "$version" > ../VERSION
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Hardware hacking with the greatfet";
|
|
|
|
homepage = "https://greatscottgadgets.com/greatfet";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ mog ];
|
|
|
|
};
|
|
|
|
}
|