1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, EasyProcess 6, entrypoint2 7, jeepney 8, mss 9, pillow 10}: 11 12buildPythonPackage rec { 13 pname = "pyscreenshot"; 14 version = "3.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "dd4fdfaeb617483913a6b16845b9f428de5db28758979f4b6cf8f236d292b908"; 19 }; 20 21 propagatedBuildInputs = [ 22 EasyProcess 23 entrypoint2 24 pillow 25 ] ++ lib.optionals (isPy3k) [ 26 jeepney 27 mss 28 ]; 29 30 # recursive dependency on pyvirtualdisplay 31 doCheck = false; 32 33 pythonImportsCheck = [ "pyscreenshot" ]; 34 35 meta = with lib; { 36 description = "python screenshot"; 37 homepage = "https://github.com/ponty/pyscreenshot"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ costrouc ]; 40 }; 41}