14 buildPythonPackage rec {
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
25 hash = "sha256-TEy4wff0eRRkX98yK9054d33Tm6G6qWrd9Iv+ITcFmA=";
28 nativeBuildInputs = [ poetry-core ];
31 substituteInPlace screeninfo/enumerators/xinerama.py \
32 --replace 'load_library("X11")' 'ctypes.cdll.LoadLibrary("${libX11}/lib/libX11.so")' \
33 --replace 'load_library("Xinerama")' 'ctypes.cdll.LoadLibrary("${libXinerama}/lib/libXinerama.so")'
34 substituteInPlace screeninfo/enumerators/xrandr.py \
35 --replace 'load_library("X11")' 'ctypes.cdll.LoadLibrary("${libX11}/lib/libX11.so")' \
36 --replace 'load_library("Xrandr")' 'ctypes.cdll.LoadLibrary("${libXrandr}/lib/libXrandr.so")'
39 nativeCheckInputs = [ pytestCheckHook ];
42 # We don't have a screen
43 "tests/test_screeninfo.py"
46 pythonImportsCheck = [ "screeninfo" ];
49 broken = stdenv.hostPlatform.isDarwin;
50 description = "Fetch location and size of physical screens";
51 homepage = "https://github.com/rr-/screeninfo";
52 license = licenses.mit;
53 maintainers = with maintainers; [ nickhu ];