about summary refs log tree commit diff
path: root/pkgs/development/python-modules/appnope/default.nix
blob: 68ada3b4b4cd38001c7a162c41141809c25ae533 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "appnope";
  version = "0.1.3";

  src = fetchFromGitHub {
    owner = "minrk";
    repo = "appnope";
    rev = version;
    hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw=";
  };

  checkInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Disable App Nap on macOS";
    homepage = "https://github.com/minrk/appnope";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ OPNA2608 ];
    # Not Darwin-specific because dummy fallback may be used cross-platform
  };
}