summary refs log tree commit diff
path: root/pkgs/development/python-modules/adguardhome
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-03-14 01:35:33 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-03-14 01:35:33 +0100
commit89ca7d44c022625d09ccbf5b827f22db97f8512e (patch)
tree778c54eb83435d954263c68e96ba499b527669c6 /pkgs/development/python-modules/adguardhome
parent916536210d4faa221216d6319f39b2a7167beb59 (diff)
downloadnixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar.gz
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar.bz2
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar.lz
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar.xz
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.tar.zst
nixpkgs-89ca7d44c022625d09ccbf5b827f22db97f8512e.zip
python3Packages.adguardhome: 0.4.2 -> 0.5.0
Diffstat (limited to 'pkgs/development/python-modules/adguardhome')
-rw-r--r--pkgs/development/python-modules/adguardhome/default.nix43
1 files changed, 34 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/adguardhome/default.nix b/pkgs/development/python-modules/adguardhome/default.nix
index b3cbfd212ba..dfa576e657c 100644
--- a/pkgs/development/python-modules/adguardhome/default.nix
+++ b/pkgs/development/python-modules/adguardhome/default.nix
@@ -1,24 +1,49 @@
-{ aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, isPy3k, lib
-, pytest-asyncio, pytestCheckHook, yarl }:
+{ lib
+, aiohttp
+, aresponses
+, buildPythonPackage
+, fetchFromGitHub
+, poetry-core
+, pytest-asyncio
+, pytestCheckHook
+, pythonOlder
+, yarl
+}:
 
 buildPythonPackage rec {
   pname = "adguardhome";
-  version = "0.4.2";
-
-  disabled = !isPy3k;
+  version = "0.5.0";
+  format = "pyproject";
+  disabled = pythonOlder "3.8";
 
   src = fetchFromGitHub {
     owner = "frenck";
     repo = "python-${pname}";
     rev = "v${version}";
-    sha256 = "0lcf3yg27amrnqvgn5nw4jn2j0vj4yfmyl5p5yncmn7dh6bdbsp8";
+    sha256 = "sha256-f8uZF4DXbfiL1nL82shjGNpo6lXSUomRgO1YnNT/GDw=";
   };
 
-  propagatedBuildInputs = [ aiohttp yarl ];
-  checkInputs = [ aresponses pytest-asyncio pytestCheckHook ];
+  nativeBuildInputs = [ poetry-core ];
+
+  propagatedBuildInputs = [
+    aiohttp
+    yarl
+  ];
+
+  checkInputs = [
+    aresponses
+    pytest-asyncio
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    substituteInPlace pyproject.toml --replace "--cov" ""
+  '';
+
+  pythonImportsCheck = [ "adguardhome" ];
 
   meta = with lib; {
-    description = "Asynchronous Python client for the AdGuard Home API.";
+    description = "Python client for the AdGuard Home API";
     homepage = "https://github.com/frenck/python-adguardhome";
     license = licenses.mit;
     maintainers = with maintainers; [ jamiemagee ];