ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / greatfet / default.nix
blob7859d2f4c0870ba65be2cc32fdf2e7cfb2597da2
1 { lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }:
3 buildPythonPackage rec {
4   pname = "GreatFET";
5   version = "2019.5.1.dev0";
7   src = fetchFromGitHub {
8     owner = "greatscottgadgets";
9     repo = "greatfet";
10     rev = "v${version}";
11     sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv";
12   };
14   disabled = !isPy3k;
16   propagatedBuildInputs = [ future pyusb ipython pygreat ];
18   doCheck = false;
20   preBuild = ''
21     cd host
22     echo "$version" > ../VERSION
23   '';
25   meta = {
26     description = "Hardware hacking with the greatfet";
27     homepage = "https://greatscottgadgets.com/greatfet";
28     license = lib.licenses.bsd3;
29     platforms = lib.platforms.all;
30     maintainers = with lib.maintainers; [ mog ];
31   };