1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pillow, 6 xlib, 7 xvfb-run, 8 scrot, 9}: 10buildPythonPackage rec { 11 pname = "pyscreeze"; 12 version = "0.1.26"; 13 14 src = fetchFromGitHub { 15 owner = "asweigart"; 16 repo = "pyscreeze"; 17 rev = "28ab707dceecbdd135a9491c3f8effd3a69680af"; 18 hash = "sha256-gn3ydjf/msdhIhngGlhK+jhEyFy0qGeDr58E7kM2YZs="; 19 }; 20 21 pythonImportsCheck = [ "pyscreeze" ]; 22 nativeCheckInputs = [ 23 scrot 24 xlib 25 xvfb-run 26 ]; 27 checkPhase = '' 28 python -m unittest tests.test_pillow_unavailable 29 xvfb-run python -m unittest tests.test_pyscreeze 30 ''; 31 32 propagatedBuildInputs = [ pillow ]; 33 34 meta = with lib; { 35 description = "PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3."; 36 homepage = "https://github.com/asweigart/pyscreeze"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ lucasew ]; 39 }; 40}