nixpkgs/pkgs/development/python-modules/appnope/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

31 lines
642 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "appnope";
version = "0.1.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "minrk";
repo = "appnope";
rev = version;
hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw=";
};
checkInputs = [
pytestCheckHook
];
meta = {
description = "Disable App Nap on macOS";
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
};
}