summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pymonctl/default.nix
blob: 7a434581e95eff45b075163ca151e82c51f4114d (plain)
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
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,

  ewmhlib,
  xlib,
  typing-extensions,
}:

buildPythonPackage (finalAttrs: {
  pname = "pymonctl";
  version = "0.92";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Kalmat";
    repo = "PyMonCtl";
    tag = "v${finalAttrs.version}";
    hash = "sha256-eFB+HqYBud836VNEA8q8o1KQKA+GHwSC0YfU1KCbDXw=";
  };

  build-system = [ setuptools ];

  dependencies = [
    ewmhlib
    xlib
    typing-extensions
  ];

  # requires x session (use ewmhlib)
  pythonImportsCheck = [ ];
  doCheck = false;

  meta = {
    homepage = "https://github.com/Kalmat/PyMonCtl";
    license = lib.licenses.bsd3;
    description = "Cross-Platform toolkit to get info on and control monitors connected";
    maintainers = with lib.maintainers; [ sigmanificient ];
    broken = stdenv.hostPlatform.isDarwin;
  };
})