diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-10-12 20:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 20:35:09 +0200 |
commit | a06c791e6cb22aea48b1e5f09204536ec3a2fa16 (patch) | |
tree | 81ab063c051573c234bd2d4579a17952479f81d1 /pkgs | |
parent | 3bf5f037292c4b37bd28d28ed9c6c967f86f5c43 (diff) | |
parent | e0fcc8686541476cabfa103847cee4902c3968b3 (diff) |
Merge pull request #141334 from fabaff/pytautulli
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pytautulli/default.nix | 52 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/component-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 55 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pytautulli/default.nix b/pkgs/development/python-modules/pytautulli/default.nix new file mode 100644 index 0000000000000..32806004f767e --- /dev/null +++ b/pkgs/development/python-modules/pytautulli/default.nix @@ -0,0 +1,52 @@ +{ lib +, aiohttp +, aresponses +, async-timeout +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pytautulli"; + version = "21.10.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "ludeeus"; + repo = pname; + rev = version; + sha256 = "1gi1jalwzf1aykvdmdbvr7hvfch9wbbjra87f1vzdmkb5iiirw01"; + }; + + postPatch = '' + # Upstream is releasing with the help of a CI to PyPI, GitHub releases + # are not in their focus + substituteInPlace setup.py \ + --replace 'version="main",' 'version="${version}",' + ''; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "pytautulli" ]; + + meta = with lib; { + description = "Python module to get information from Tautulli"; + homepage = "https://github.com/ludeeus/pytautulli"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 13547f56a2ab9..428506723b5ac 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -859,7 +859,7 @@ "tankerkoenig" = ps: with ps; [ pytankerkoenig ]; "tapsaff" = ps: with ps; [ ]; # missing inputs: tapsaff "tasmota" = ps: with ps; [ aiohttp-cors hatasmota paho-mqtt ]; - "tautulli" = ps: with ps; [ ]; # missing inputs: pytautulli + "tautulli" = ps: with ps; [ pytautulli ]; "tcp" = ps: with ps; [ ]; "ted5000" = ps: with ps; [ xmltodict ]; "telegram" = ps: with ps; [ pysocks aiohttp-cors python-telegram-bot ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1293a07887b3..daf946a06943b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7049,6 +7049,8 @@ in { pytankerkoenig = callPackage ../development/python-modules/pytankerkoenig { }; + pytautulli = callPackage ../development/python-modules/pytautulli { }; + pyte = callPackage ../development/python-modules/pyte { }; pytenable = callPackage ../development/python-modules/pytenable { }; |