Skip to content

Commit

Permalink
python3Packages.appnope: Make available on non-Darwin, styling, updat…
Browse files Browse the repository at this point in the history
…e homepage
  • Loading branch information
OPNA2608 committed Mar 7, 2023
1 parent fb96f99 commit 38daa6b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions pkgs/development/python-modules/appnope/default.nix
Original file line number Diff line number Diff line change
@@ -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
};
}

0 comments on commit 38daa6b

Please sign in to comment.