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