1{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }: 2 3buildPythonPackage rec { 4 pname = "GreatFET"; 5 version = "2019.5.1.dev0"; 6 7 src = fetchFromGitHub { 8 owner = "greatscottgadgets"; 9 repo = "greatfet"; 10 rev = "v${version}"; 11 sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv"; 12 }; 13 14 disabled = !isPy3k; 15 16 propagatedBuildInputs = [ future pyusb ipython pygreat ]; 17 18 doCheck = false; 19 20 preBuild = '' 21 cd host 22 echo "$version" > ../VERSION 23 ''; 24 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 }; 32} 33 34