diff --git a/pkgs/development/python-modules/pyvesync/default.nix b/pkgs/development/python-modules/pyvesync/default.nix index fbc5ae395b98..c20d832a3e2c 100644 --- a/pkgs/development/python-modules/pyvesync/default.nix +++ b/pkgs/development/python-modules/pyvesync/default.nix @@ -1,35 +1,39 @@ { lib, + aiohttp, buildPythonPackage, fetchFromGitHub, - requests, + mashumaro, pytestCheckHook, - pythonOlder, pyyaml, + requests, setuptools, }: buildPythonPackage rec { pname = "pyvesync"; - version = "2.1.18"; + version = "3.0.0"; pyproject = true; - disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "webdjoe"; repo = "pyvesync"; tag = version; - hash = "sha256-p46QVjJ8MzvsAu9JAQo4XN+z96arWLoJakdT81ITasU="; + hash = "sha256-P5zIdc+lUmiBfibRiWIcwyoKqjw8F7XBj85Nwvawreo="; }; build-system = [ setuptools ]; - dependencies = [ requests ]; + dependencies = [ + aiohttp + mashumaro + ] + ++ mashumaro.optional-dependencies.orjson; nativeCheckInputs = [ pytestCheckHook pyyaml + requests ]; pythonImportsCheck = [ "pyvesync" ]; @@ -38,7 +42,7 @@ buildPythonPackage rec { description = "Python library to manage Etekcity Devices and Levoit Air Purifier"; homepage = "https://github.com/webdjoe/pyvesync"; changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${src.tag}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }