python3Packages.appnope: modernize
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "appnope";
|
||||
version = "0.1.4";
|
||||
pyproject = true;
|
||||
@@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "minrk";
|
||||
repo = "appnope";
|
||||
rev = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-We7sZKVbQFIMdZpS+VMdi0RH1O/qtFNrfJNg/98tO5A=";
|
||||
};
|
||||
|
||||
@@ -22,6 +22,8 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "appnope" ];
|
||||
|
||||
meta = {
|
||||
description = "Disable App Nap on macOS";
|
||||
homepage = "https://github.com/minrk/appnope";
|
||||
@@ -29,4 +31,4 @@ buildPythonPackage rec {
|
||||
maintainers = with lib.maintainers; [ OPNA2608 ];
|
||||
# Not Darwin-specific because dummy fallback may be used cross-platform
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user