From 35084139ec4793f1f046088f7ca0922ddb09cede Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Nov 2022 12:25:40 +0100 Subject: [PATCH] python310Packages.aioweenect: init at 1.1.1 --- .../python-modules/aioweenect/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/aioweenect/default.nix 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 af0c07084a9f..6367f218fed4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -342,6 +342,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 { };