diff --git a/pkgs/development/python-modules/adafruit-platformdetect/default.nix b/pkgs/development/python-modules/adafruit-platformdetect/default.nix index ebabbeb3c7ad..832648bceda2 100644 --- a/pkgs/development/python-modules/adafruit-platformdetect/default.nix +++ b/pkgs/development/python-modules/adafruit-platformdetect/default.nix @@ -5,14 +5,14 @@ setuptools-scm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "adafruit-platformdetect"; version = "3.87.0"; pyproject = true; src = fetchPypi { pname = "adafruit_platformdetect"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-RUkhGgTxydSCICkhBevVhaFYDYNTZye+jOLiHwyBFIY="; }; @@ -26,8 +26,8 @@ buildPythonPackage rec { meta = { description = "Platform detection for use by Adafruit libraries"; homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect"; - changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}"; + changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})