about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-02-16 00:13:37 +0100
committerGitHub <noreply@github.com>2022-02-16 00:13:37 +0100
commit13adc1b6949a82b26b2f0f20b028820093527433 (patch)
treeab9d1f880b8ca1dfb2d749875544513bdfdb2177 /pkgs
parentc7614033ced2569d5f4b8fa16467f1a1628f67b3 (diff)
parent4be6e3e90de83787e23e86d5f41e7769d995930b (diff)
Merge pull request #160008 from fabaff/aiopyarr
python3Packages.aiopyarr: init at 22.2.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/aiopyarr/default.nix45
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix
new file mode 100644
index 0000000000000..54eab469629fe
--- /dev/null
+++ b/pkgs/development/python-modules/aiopyarr/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, aiohttp
+, aresponses
+, buildPythonPackage
+, fetchFromGitHub
+, pytest-asyncio
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "aiopyarr";
+  version = "22.2.1";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.9";
+
+  src = fetchFromGitHub {
+    owner = "tkdrob";
+    repo = pname;
+    rev = version;
+    hash = "sha256-SEF47hz5XbATuuuO5t5H40+kT7RWSBjP0BfYd38pNSw=";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  checkInputs = [
+    aresponses
+    pytest-asyncio
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "aiopyarr"
+  ];
+
+  meta = with lib; {
+    description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
+    homepage = "https://github.com/tkdrob/aiopyarr";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 8a3dcbdd7a66a..65704adecf1a2 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -380,6 +380,8 @@ in {
 
   aiopvpc = callPackage ../development/python-modules/aiopvpc { };
 
+  aiopyarr = callPackage ../development/python-modules/aiopyarr { };
+
   aiopylgtv = callPackage ../development/python-modules/aiopylgtv { };
 
   aiorecollect = callPackage ../development/python-modules/aiorecollect { };