diff --git a/pkgs/development/python-modules/appnope/default.nix b/pkgs/development/python-modules/appnope/default.nix index ea358f96e4799..68ada3b4b4cd3 100644 --- a/pkgs/development/python-modules/appnope/default.nix +++ b/pkgs/development/python-modules/appnope/default.nix @@ -1,21 +1,29 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { pname = "appnope"; version = "0.1.3"; - src = fetchPypi { - inherit pname version; - hash = "sha256-Ar2RxN6Gn7seHFCq/ECYgnp6VKsvOdncumyVR+2SDiQ="; + src = fetchFromGitHub { + owner = "minrk"; + repo = "appnope"; + rev = version; + hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw="; }; + checkInputs = [ + pytestCheckHook + ]; + meta = { description = "Disable App Nap on macOS"; - homepage = "https://pypi.python.org/pypi/appnope"; - platforms = lib.platforms.darwin; - license = lib.licenses.bsd3; + 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 }; }