about summary refs log tree commit diff
path: root/pkgs/development/python-modules/facedancer/default.nix
blob: 516eb08e4f46c759f181c4fa556b5e2101851024 (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
35
36
37
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy3k,
  pyusb,
  pyserial,
}:

buildPythonPackage rec {
  pname = "facedancer";
  version = "2019.3.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1zhwnlfksblgp54njd9gjsrr5ibg12cx1x9xxcqkcdfhn3m2kmm0";
  };

  disabled = !isPy3k;

  propagatedBuildInputs = [
    pyusb
    pyserial
  ];

  preBuild = ''
    echo "$version" > VERSION
  '';

  meta = with lib; {
    description = "library for emulating usb devices";
    homepage = "https://greatscottgadgets.com/greatfet/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ mog ];
  };
}