diff --git a/pkgs/development/python-modules/pytradfri/default.nix b/pkgs/development/python-modules/pytradfri/default.nix index ab7772360d65..b979daab4d2f 100644 --- a/pkgs/development/python-modules/pytradfri/default.nix +++ b/pkgs/development/python-modules/pytradfri/default.nix @@ -1,9 +1,7 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, - fetchpatch2, setuptools, aiocoap, dtlssocket, @@ -13,27 +11,16 @@ buildPythonPackage rec { pname = "pytradfri"; - version = "13.0.0"; + version = "14.0.0"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "pytradfri"; tag = version; - hash = "sha256-CWv3ebDulZuiFP+nJ2Xr7U/HTDFTqA9VYC0USLkpWR0="; + hash = "sha256-oYYi1P0Zu9PLsacUW//BlJlLmeOVvHgb/lR52KwZ7N8="; }; - patches = [ - (fetchpatch2 { - name = "pydantic2-compat.patch"; - url = "https://github.com/home-assistant-libs/pytradfri/commit/ecd099837a0b4538a56301af6260fddde77fbbb1.patch"; - excludes = [ "requirements.txt" ]; - hash = "sha256-QsvBTB9evKyE1fcfDaB0SN21kHmNmLgGPs3GJHHsMJc="; - }) - ]; - build-system = [ setuptools ]; dependencies = [ pydantic ]; @@ -52,7 +39,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway"; homepage = "https://github.com/home-assistant-libs/pytradfri"; - changelog = "https://github.com/home-assistant-libs/pytradfri/releases/tag/${version}"; + changelog = "https://github.com/home-assistant-libs/pytradfri/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };