about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/greatfet/default.nix
blob: 7859d2f4c0870ba65be2cc32fdf2e7cfb2597da2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }:

buildPythonPackage rec {
  pname = "GreatFET";
  version = "2019.5.1.dev0";

  src = fetchFromGitHub {
    owner = "greatscottgadgets";
    repo = "greatfet";
    rev = "v${version}";
    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 ];
  };
}