diff --git a/pkgs/development/python-modules/pylitterbot/default.nix b/pkgs/development/python-modules/pylitterbot/default.nix index cdb971b6a7b5..accbf6761a6f 100644 --- a/pkgs/development/python-modules/pylitterbot/default.nix +++ b/pkgs/development/python-modules/pylitterbot/default.nix @@ -1,45 +1,58 @@ { lib -, authlib +, aiohttp +, aioresponses , buildPythonPackage , fetchFromGitHub -, httpx -, pytest-asyncio +, poetry-core +, pyjwt +, pytest-aiohttp +, pytest-freezegun , pytestCheckHook , pythonOlder -, pytz +, deepdiff }: buildPythonPackage rec { pname = "pylitterbot"; - version = "2022.7.0"; - format = "setuptools"; + version = "2022.8.2"; + format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "natekspencer"; repo = pname; - rev = version; - sha256 = "sha256-iniSlsZVWdDuwM/6asX4xyVrtrQvt7wEBwDVutjCogU="; + rev = "refs/tags/${version}"; + hash = "sha256-TfPixJr5CmEUZHSg8VLlmRZbF53F95DTVuiCgJ8dTcE="; }; + nativeBuildInputs = [ + poetry-core + ]; + propagatedBuildInputs = [ - authlib - httpx - pytz + aiohttp + deepdiff + pyjwt ]; checkInputs = [ - pytest-asyncio + aioresponses + pytest-aiohttp + pytest-freezegun pytestCheckHook ]; + pytestFlagsArray = [ + "--asyncio-mode=legacy" + ]; + pythonImportsCheck = [ "pylitterbot" ]; meta = with lib; { - description = "Python package for controlling a Litter-Robot"; + description = "Modulefor controlling a Litter-Robot"; homepage = "https://github.com/natekspencer/pylitterbot"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ];