1{ lib, buildPythonPackage, fetchPypi 2, protobuf 3, websockets 4}: 5 6buildPythonPackage rec { 7 pname = "iterm2"; 8 version = "2.7"; 9 10 src = fetchPypi { 11 inherit pname version; 12 hash = "sha256-9vC+xGwyzsr3vn/YIpbsRpfUvyEB8MSqskzBI5kfojA="; 13 }; 14 15 propagatedBuildInputs = [ protobuf websockets ]; 16 17 # The tests require pyobjc. We can't use pyobjc because at 18 # time of writing the pyobjc derivation is disabled on python 3. 19 # iterm2 won't build on python 2 because it depends on websockets 20 # which is disabled below python 3.3. 21 doCheck = false; 22 23 pythonImportsCheck = [ "iterm2" ]; 24 25 meta = with lib; { 26 description = "Python interface to iTerm2's scripting API"; 27 homepage = "https://github.com/gnachman/iTerm2"; 28 license = licenses.gpl2; 29 platforms = platforms.darwin; 30 maintainers = with maintainers; [ jeremyschlatter ]; 31 }; 32}