Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchgit 4, isPy3k 5, pyusb 6, pybluez 7, pyfantom 8, git 9}: 10 11buildPythonPackage rec { 12 version = "unstable-20160819"; 13 pname = "nxt-python"; 14 disabled = isPy3k; 15 16 src = fetchgit { 17 url = "http://github.com/Eelviny/nxt-python"; 18 rev = "479e20b7491b28567035f4cee294c4a2af629297"; 19 sha256 = "0mcsajhgm2wy4iy2lhmyi3xibgmbixbchanzmlhsxk6qyjccn9r9"; 20 branchName= "pyusb"; 21 }; 22 23 propagatedBuildInputs = [ pyusb pybluez pyfantom git ]; 24 25 # Tests fail on Mac dependency 26 doCheck = false; 27 28 meta = with stdenv.lib; { 29 description = "Python driver/interface for Lego Mindstorms NXT robot"; 30 homepage = https://github.com/Eelviny/nxt-python; 31 license = licenses.gpl3; 32 platforms = platforms.linux; 33 maintainers = with maintainers; [ leenaars ]; 34 }; 35 36}