{ lib , aiohttp , aresponses , buildPythonPackage , fetchFromGitHub , pytest-asyncio , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "pytautulli"; version = "23.1.1"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "ludeeus"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-5wE8FjLFu1oQkVqnWsbp253dsQ1/QGWC6hHSIFwLajY="; }; 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 ]; nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ aresponses pytest-asyncio ]; pytestFlagsArray = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "pytautulli" ]; meta = with lib; { description = "Python module to get information from Tautulli"; homepage = "https://github.com/ludeeus/pytautulli"; changelog = "https://github.com/ludeeus/pytautulli/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }