1{ lib 2, buildPythonApplication 3, dataclasses 4, fetchPypi 5, libX11 6, libXinerama 7, libXrandr 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonApplication rec { 13 pname = "screeninfo"; 14 version = "0.7"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "12a97c3527e3544ac5dbd7c1204283e2653d655cbd15844c990a83b1b13ef500"; 21 }; 22 23 propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ 24 dataclasses 25 ]; 26 27 buildInputs = [ 28 libX11 29 libXinerama 30 libXrandr 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 disabledTestPaths = [ 38 # We don't have a screen 39 "screeninfo/test_screeninfo.py" 40 ]; 41 42 pythonImportsCheck = [ "screeninfo" ]; 43 44 meta = with lib; { 45 description = "Fetch location and size of physical screens"; 46 homepage = "https://github.com/rr-/screeninfo"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ nickhu ]; 49 }; 50}