1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 isPy3k,
6 future,
7 pyusb,
8 ipython,
9 pygreat,
10}:
11
12buildPythonPackage rec {
13 pname = "greatfet";
14 version = "2019.5.1.dev0";
15
16 src = fetchFromGitHub {
17 owner = "greatscottgadgets";
18 repo = "greatfet";
19 rev = "v${version}";
20 sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv";
21 };
22
23 disabled = !isPy3k;
24
25 propagatedBuildInputs = [
26 future
27 pyusb
28 ipython
29 pygreat
30 ];
31
32 doCheck = false;
33
34 preBuild = ''
35 cd host
36 echo "$version" > ../VERSION
37 '';
38
39 meta = {
40 description = "Hardware hacking with the greatfet";
41 homepage = "https://greatscottgadgets.com/greatfet";
42 license = lib.licenses.bsd3;
43 platforms = lib.platforms.all;
44 maintainers = with lib.maintainers; [ mog ];
45 };
46}