about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2024-03-24 21:57:24 +0100
committerAnthony Roussel <anthony@roussel.dev>2024-03-24 22:01:08 +0100
commitad9917895286e4b24413e2fe886a6bd01f406880 (patch)
tree6a41895dcb5021c50aafe8b524f8724b997b2fa2 /pkgs
parentef4d6ccb6f8063e277500e6742a4302014406338 (diff)
downloadnixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar.gz
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar.bz2
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar.lz
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar.xz
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.tar.zst
nixlib-ad9917895286e4b24413e2fe886a6bd01f406880.zip
autosuspend: 6.0.0 -> 6.1.1
https://github.com/languitar/autosuspend/compare/v6.0.0...v6.1.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/autosuspend/default.nix33
1 files changed, 8 insertions, 25 deletions
diff --git a/pkgs/os-specific/linux/autosuspend/default.nix b/pkgs/os-specific/linux/autosuspend/default.nix
index 5abacf966b9e..a39d3ec782c1 100644
--- a/pkgs/os-specific/linux/autosuspend/default.nix
+++ b/pkgs/os-specific/linux/autosuspend/default.nix
@@ -1,31 +1,13 @@
 { lib
+, dbus
 , fetchFromGitHub
 , fetchPypi
 , python3
 }:
 
-let
-  python = python3.override {
-    packageOverrides = self: super: {
-      # autosuspend is incompatible with tzlocal v5
-      # See https://github.com/regebro/tzlocal#api-change
-      tzlocal = super.tzlocal.overridePythonAttrs (prev: rec {
-        version = "4.3.1";
-        src = fetchPypi {
-          inherit (prev) pname;
-          inherit version;
-          hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo=";
-        };
-        propagatedBuildInputs = with self; [
-          pytz-deprecation-shim
-        ];
-      });
-    };
-  };
-in
-python.pkgs.buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
   pname = "autosuspend";
-  version = "6.0.0";
+  version = "6.1.1";
 
   disabled = python3.pythonOlder "3.8";
 
@@ -33,15 +15,15 @@ python.pkgs.buildPythonApplication rec {
     owner = "languitar";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-gS8NNks4GaIGl7cEqWSP53I4/tIV4LypkmZ5vNOjspY=";
+    hash = "sha256-LGU/yhwuc6BuctCibm0AaRheQkuSIgEVXzcWQHCJ/8Y=";
   };
 
   postPatch = ''
     substituteInPlace setup.cfg \
-      --replace '--cov-config=setup.cfg' ""
+      --replace-fail '--cov-config=setup.cfg' ""
   '';
 
-  propagatedBuildInputs = with python.pkgs; [
+  dependencies = with python3.pkgs; [
     dbus-python
     icalendar
     jsonpath-ng
@@ -56,7 +38,8 @@ python.pkgs.buildPythonApplication rec {
     tzlocal
   ];
 
-  nativeCheckInputs = with python.pkgs; [
+  nativeCheckInputs = with python3.pkgs; [
+    dbus
     freezegun
     pytest-datadir
     pytest-httpserver