Merge pull request #208545 from OPNA2608/fix/appnope_linux

This commit is contained in:
Sandro 2023-03-14 00:56:40 +01:00 committed by GitHub
commit 0ba1cbaa96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
};
}