about summary refs log tree commit diff
path: root/pkgs/development/python-modules/adguardhome
diff options
context:
space:
mode:
authorJamie Magee <jamie.magee@gmail.com>2020-10-02 15:49:47 +0200
committerJon <jonringer@users.noreply.github.com>2020-10-02 08:56:11 -0700
commitbc99830b675a9b6efbe418f47f2c0cf4ce452f9d (patch)
tree416a96214c4c105880b37dc10532ed9e334bee95 /pkgs/development/python-modules/adguardhome
parentbd52e7f8d35bfd6d66d6d2d482f9cc336f6e7399 (diff)
pythonPackages.adguardhome: init at 0.4.2
Diffstat (limited to 'pkgs/development/python-modules/adguardhome')
-rw-r--r--pkgs/development/python-modules/adguardhome/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/adguardhome/default.nix b/pkgs/development/python-modules/adguardhome/default.nix
new file mode 100644
index 0000000000000..b3cbfd212ba64
--- /dev/null
+++ b/pkgs/development/python-modules/adguardhome/default.nix
@@ -0,0 +1,26 @@
+{ aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, isPy3k, lib
+, pytest-asyncio, pytestCheckHook, yarl }:
+
+buildPythonPackage rec {
+  pname = "adguardhome";
+  version = "0.4.2";
+
+  disabled = !isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "frenck";
+    repo = "python-${pname}";
+    rev = "v${version}";
+    sha256 = "0lcf3yg27amrnqvgn5nw4jn2j0vj4yfmyl5p5yncmn7dh6bdbsp8";
+  };
+
+  propagatedBuildInputs = [ aiohttp yarl ];
+  checkInputs = [ aresponses pytest-asyncio pytestCheckHook ];
+
+  meta = with lib; {
+    description = "Asynchronous Python client for the AdGuard Home API.";
+    homepage = "https://github.com/frenck/python-adguardhome";
+    license = licenses.mit;
+    maintainers = with maintainers; [ jamiemagee ];
+  };
+}