summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/appnope/default.nix
blob: 12e720eb3618e9b9bef01b9c6a52b2fd8b05d940 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "appnope";
  version = "0.1.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "minrk";
    repo = "appnope";
    tag = finalAttrs.version;
    hash = "sha256-We7sZKVbQFIMdZpS+VMdi0RH1O/qtFNrfJNg/98tO5A=";
  };

  build-system = [ setuptools ];

  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "appnope" ];

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