diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-03-19 19:01:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 19:01:59 +0100 |
commit | f4fb648799ae71ac118a2a1c8b92698f2a01e246 (patch) | |
tree | 9c7faedd8a5b4c0710961992697fc8ee1a0e1ac2 | |
parent | a89cbefa784dcb33aaadc294489849ab334a0a0f (diff) | |
parent | 9e419d164932c812059e848bff301932c180dc56 (diff) |
Merge pull request #297183 from fabaff/connect-box-bump
python311Packages.connect-box: 0.3.1 -> 0.4.0
-rw-r--r-- | pkgs/development/python-modules/connect-box/default.nix | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/connect-box/default.nix b/pkgs/development/python-modules/connect-box/default.nix index b7ba433478b27..34ca8dbb01df5 100644 --- a/pkgs/development/python-modules/connect-box/default.nix +++ b/pkgs/development/python-modules/connect-box/default.nix @@ -3,36 +3,54 @@ , attrs , buildPythonPackage , defusedxml -, fetchPypi +, fetchFromGitHub , pythonOlder +, pytest-asyncio +, pytestCheckHook +, setuptools +, pytest-vcr +, syrupy }: buildPythonPackage rec { pname = "connect-box"; - version = "0.3.1"; - format = "setuptools"; + version = "0.4.0"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.10"; - src = fetchPypi { - pname = "connect_box"; - inherit version; - hash = "sha256-x1ozcj3IL+iI/QtS12yEudCqNknCmyb5ew88Z39xaLA="; + src = fetchFromGitHub { + owner = "home-assistant-ecosystem"; + repo = "python-connect-box"; + rev = "refs/tags/${version}"; + hash = "sha256-zUvZRnxVzg9izvUbp7QVcyu6Bw3dUXHOr0kOQRWEZVc="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ aiohttp attrs defusedxml ]; - # No tests are present - doCheck = false; + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + pytest-vcr + syrupy + ]; pythonImportsCheck = [ "connect_box" ]; + pytestFlagsArray = [ + "--vcr-record=none" + ]; + meta = with lib; { description = "Interact with a Compal CH7465LG cable modem/router"; longDescription = '' |