mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.appnope: modernize
This commit is contained in:
parent
439b608eaa
commit
ff06813090
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue