diff --git a/pkgs/development/python-modules/openwebifpy/default.nix b/pkgs/development/python-modules/openwebifpy/default.nix index 4661bb4dcf4c..b66b62fa3bb4 100644 --- a/pkgs/development/python-modules/openwebifpy/default.nix +++ b/pkgs/development/python-modules/openwebifpy/default.nix @@ -1,30 +1,45 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder -, requests, zeroconf, wakeonlan -, python }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder + +# build-system +, setuptools + +# dependencies +, aiohttp + +# tests +, pytestCheckHook +}: buildPythonPackage rec { pname = "openwebifpy"; - version = "3.2.7"; - format = "setuptools"; + version = "4.0.0"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "0n9vi6b0y8b41fd7m9p361y3qb5m3b9p9d8g4fasqi7yy4mw2hns"; + hash = "sha256-4KYLjRD2n98t/MVan4ox19Yhz0xkSEMUKYdWqcwmBs4="; }; - propagatedBuildInputs = [ - requests - zeroconf - wakeonlan + nativeBuildInputs = [ + setuptools ]; - checkPhase = '' - ${python.interpreter} setup.py test - ''; + propagatedBuildInputs = [ + aiohttp + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; meta = with lib; { description = "Provides a python interface to interact with a device running OpenWebIf"; + downloadPage = "https://github.com/autinerd/openwebifpy"; homepage = "https://openwebifpy.readthedocs.io/"; license = licenses.mit; maintainers = with maintainers; [ hexa ];