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