3
0
Fork 0
forked from mirrors/nixpkgs

autosuspend: init at 4.0.0 (#140532)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Bruno Bzeznik 2021-10-05 17:27:35 +02:00 committed by GitHub
parent 9761c54504
commit e9ab5bfe00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "autosuspend";
version = "4.0.0";
src = fetchFromGitHub {
owner = "languitar";
repo = pname;
rev = "v${version}";
sha256 = "03qca6avn7bwxcavif7q2nqfzivzp0py7qw3i4hsb28gjrq9nz36";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace '--cov-config=setup.cfg' ""
'';
propagatedBuildInputs = with python3.pkgs; [
portalocker
psutil
dbus-python
];
checkInputs = with python3.pkgs; [
pytestCheckHook
python-dbusmock
pytest-httpserver
dateutils
freezegun
pytest-mock
requests
requests-file
icalendar
tzlocal
jsonpath-ng
mpd2
lxml
pytest-datadir
];
# Disable tests that need root
disabledTests = [
"test_smoke"
"test_multiple_sessions"
];
doCheck = true;
meta = with lib ; {
description = "A daemon to automatically suspend and wake up a system";
homepage = "https://autosuspend.readthedocs.io";
license = licenses.gpl2Only;
maintainers = [ maintainers.bzizou ];
platforms = platforms.linux;
};
}

View file

@ -1289,6 +1289,8 @@ with pkgs;
autospotting = callPackage ../applications/misc/autospotting { };
autosuspend = callPackage ../os-specific/linux/autosuspend { };
avfs = callPackage ../tools/filesystems/avfs { };
aws-iam-authenticator = callPackage ../tools/security/aws-iam-authenticator {};