Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "2024.0.1"; 15 16 src = fetchFromGitHub { 17 owner = "greatscottgadgets"; 18 repo = "greatfet"; 19 rev = "refs/tags/v${version}"; 20 sha256 = "sha256-AKpaJZJTzMY3IQXLvVnLWh3IHeGp759z6tvaBl28BHQ="; 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}