diff --git a/pkgs/development/python-modules/aioweenect/default.nix b/pkgs/development/python-modules/aioweenect/default.nix new file mode 100644 index 000000000000..8b63e0ef71d3 --- /dev/null +++ b/pkgs/development/python-modules/aioweenect/default.nix @@ -0,0 +1,56 @@ +{ lib +, aiohttp +, aresponses +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aioweenect"; + version = "1.1.1"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "eifinger"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-9CYdOUPCt4TkepVuVJHMZngFHyCLFwVvik1xDnfneEc="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "--cov --cov-report term-missing --cov-report xml --cov=aioweenect tests" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + + pythonImportsCheck = [ + "aioweenect" + ]; + + meta = with lib; { + description = "Library for the weenect API"; + homepage = "https://github.com/eifinger/aioweenect"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5b3e67597848..617356b42c4e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -344,6 +344,8 @@ self: super: with self; { aiowatttime = callPackage ../development/python-modules/aiowatttime { }; + aioweenect = callPackage ../development/python-modules/aioweenect { }; + aiowebostv = callPackage ../development/python-modules/aiowebostv { }; aiowinreg = callPackage ../development/python-modules/aiowinreg { };