python3Packages.appnope: Make available on non-Darwin, styling, update homepage
This commit is contained in:
parent
fb96f99cce
commit
38daa6bb44
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue