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