python311Packages.aiohue: 4.6.2 -> 4.7.0

Diff: https://github.com/home-assistant-libs/aiohue/compare/refs/tags/4.6.2...4.7.0

Changelog: https://github.com/home-assistant-libs/aiohue/releases/tag/4.7.0

Co-Authored-By: Maksym Balatsko <maksym.balatsko-ext@arista.com>
This commit is contained in:
Fabian Affolter 2023-09-27 18:54:41 +02:00 committed by Martin Weinelt
parent 71e9121562
commit 948573bb0b
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -5,23 +5,35 @@
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-aiohttp
, pytest-asyncio
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aiohue";
version = "4.6.2";
format = "setuptools";
version = "4.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-DzslGfKwsXXWWhbTb0apJCsnNdnUe7AbvrRT8ZnPbVU=";
hash = "sha256-t48rUPAM0XpbDreCwHU/smoyhPtxhwrpDkb1170GkQM=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
awesomeversion
aiohttp
@ -30,6 +42,8 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-aiohttp
];
pythonImportsCheck = [