summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pywinbox/default.nix
blob: 9815316daf3add68eb2b273c2e68cd904eb6871f (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
45
46
47
48
49
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,

  ewmhlib,
  xlib,
  typing-extensions,
  pyobjc-core,
  pyobjc-framework-Cocoa,
}:

buildPythonPackage (finalAttrs: {
  pname = "pywinbox";
  version = "0.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Kalmat";
    repo = "PyWinBox";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Z/gedrIFNpQvzRWqGxMEl5MoEIo9znZz/FZLMVl0Eb4=";
  };

  build-system = [ setuptools ];

  dependencies = [
    ewmhlib
    xlib
    typing-extensions
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    pyobjc-core
    pyobjc-framework-Cocoa
  ];

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

  meta = {
    homepage = "https://github.com/Kalmat/PyWinBox";
    license = lib.licenses.bsd3;
    description = "Cross-Platform and multi-monitor toolkit to handle rectangular areas and windows box";
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
})