fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / au / autosuspend / package.nix
blob85d691a966379ad564cb9b75f78740d20268bff6
2   lib,
3   dbus,
4   fetchFromGitHub,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "autosuspend";
10   version = "7.0.3";
11   pyproject = true;
13   disabled = python3.pythonOlder "3.10";
15   src = fetchFromGitHub {
16     owner = "languitar";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-ePQiP7NeRBPVHkd8rvbxno/NBX95e9d97F8TIazCUH4=";
20   };
22   build-system = with python3.pkgs; [
23     setuptools
24   ];
26   dependencies = with python3.pkgs; [
27     dbus-python
28     icalendar
29     jsonpath-ng
30     lxml
31     mpd2
32     portalocker
33     psutil
34     python-dateutil
35     pytz
36     requests
37     requests-file
38     tzlocal
39   ];
41   nativeCheckInputs = with python3.pkgs; [
42     dbus
43     freezegun
44     pytest-cov-stub
45     pytest-datadir
46     pytest-httpserver
47     pytest-mock
48     pytestCheckHook
49     python-dbusmock
50   ];
52   # Disable tests that need root
53   disabledTests = [
54     "test_smoke"
55     "test_multiple_sessions"
56   ];
58   doCheck = true;
60   meta = with lib; {
61     description = "Daemon to automatically suspend and wake up a system";
62     homepage = "https://autosuspend.readthedocs.io";
63     changelog = "https://github.com/languitar/autosuspend/releases/tag/v${version}";
64     license = licenses.gpl2Only;
65     maintainers = with maintainers; [
66       bzizou
67       anthonyroussel
68     ];
69     mainProgram = "autosuspend";
70     platforms = platforms.linux;
71   };