1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "appnope"; 9 version = "0.1.3"; 10 11 src = fetchFromGitHub { 12 owner = "minrk"; 13 repo = "appnope"; 14 rev = version; 15 hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw="; 16 }; 17 18 checkInputs = [ 19 pytestCheckHook 20 ]; 21 22 meta = { 23 description = "Disable App Nap on macOS"; 24 homepage = "https://github.com/minrk/appnope"; 25 license = lib.licenses.bsd3; 26 maintainers = with lib.maintainers; [ OPNA2608 ]; 27 # Not Darwin-specific because dummy fallback may be used cross-platform 28 }; 29}