2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-03-27 19:17:25 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "appnope";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.1.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "minrk";
|
|
|
|
repo = "appnope";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Disable App Nap on macOS";
|
2023-03-27 19:17:25 +00:00
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|