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