From 38daa6bb44d8f9a3d1442c9f334ae5a38c6c86d8 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 7 Mar 2023 20:06:34 +0100 Subject: [PATCH] python3Packages.appnope: Make available on non-Darwin, styling, update homepage --- .../python-modules/appnope/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) 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 }; }