about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioguardian/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-02-16 12:08:38 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2023-02-16 12:08:38 +0100
commite48314c8175e29cfddc5bd41227d5b6fb359af0d (patch)
tree0fed79746a124a34da4a1d2d5697095bd8bde57f /pkgs/development/python-modules/aioguardian/default.nix
parenta61f33281581ccd06b7a37ca1a5abde7b916e7c1 (diff)
python311Packages.aioguardian: drop asynctest
Diffstat (limited to 'pkgs/development/python-modules/aioguardian/default.nix')
-rw-r--r--pkgs/development/python-modules/aioguardian/default.nix18
1 files changed, 7 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/aioguardian/default.nix b/pkgs/development/python-modules/aioguardian/default.nix
index fcbe12a11db7d..83f6231629620 100644
--- a/pkgs/development/python-modules/aioguardian/default.nix
+++ b/pkgs/development/python-modules/aioguardian/default.nix
@@ -2,7 +2,6 @@
 , aiohttp
 , async-timeout
 , asyncio-dgram
-, asynctest
 , buildPythonPackage
 , docutils
 , fetchFromGitHub
@@ -10,22 +9,24 @@
 , pytest-aiohttp
 , pytest-asyncio
 , pytestCheckHook
+, pythonOlder
 , voluptuous
 }:
 
 buildPythonPackage rec {
   pname = "aioguardian";
   version = "2022.10.0";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.9";
 
   src = fetchFromGitHub {
     owner = "bachya";
     repo = pname;
     rev = "refs/tags/${version}";
-    sha256 = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
+    hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
   };
 
-  format = "pyproject";
-
   nativeBuildInputs = [
     poetry-core
   ];
@@ -40,17 +41,11 @@ buildPythonPackage rec {
 
   nativeCheckInputs = [
     asyncio-dgram
-    asynctest
     pytest-aiohttp
     pytest-asyncio
     pytestCheckHook
   ];
 
-  postPatch = ''
-    substituteInPlace pyproject.toml \
-      --replace 'docutils = "<0.18"' 'docutils = "*"'
-  '';
-
   disabledTestPaths = [
     "examples/"
   ];
@@ -62,10 +57,11 @@ buildPythonPackage rec {
   meta = with lib; {
     description = " Python library to interact with Elexa Guardian devices";
     longDescription = ''
-      aioguardian is a Pytho3, asyncio-focused library for interacting with the
+      aioguardian is an asyncio-focused library for interacting with the
       Guardian line of water valves and sensors from Elexa.
     '';
     homepage = "https://github.com/bachya/aioguardian";
+    changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}";
     license = with licenses; [ mit ];
     maintainers = with maintainers; [ fab ];
   };