diff --git a/pkgs/development/python-modules/pylutron/default.nix b/pkgs/development/python-modules/pylutron/default.nix index dda87c6d23f2..40eaee6be67c 100644 --- a/pkgs/development/python-modules/pylutron/default.nix +++ b/pkgs/development/python-modules/pylutron/default.nix @@ -7,44 +7,38 @@ telnetlib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pylutron"; - version = "0.4.0"; + version = "0.4.1"; pyproject = true; src = fetchFromGitHub { owner = "thecynic"; repo = "pylutron"; - tag = version; - hash = "sha256-y5RDwlIxmwzKihTDFZKoOJL+TPJbY05MKPUMs2hBWiw="; + tag = finalAttrs.version; + hash = "sha256-bfr0Guu4rbb50arFB6fIWPSqh1hLZY0WO9mALsf8dj0="; }; postPatch = '' substituteInPlace setup.py \ - --replace-fail TEMPLATE_VERSION ${version} + --replace-fail TEMPLATE_VERSION ${finalAttrs.version} ''; build-system = [ setuptools ]; - dependencies = [ - telnetlib3 - ]; + dependencies = [ telnetlib3 ]; pythonImportsCheck = [ "pylutron" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - enabledTestPaths = [ - "tests" - ]; + enabledTestPaths = [ "tests" ]; meta = { description = "Python library for controlling a Lutron RadioRA 2 system"; homepage = "https://github.com/thecynic/pylutron"; - changelog = "https://github.com/thecynic/pylutron/releases/tag/${version}"; + changelog = "https://github.com/thecynic/pylutron/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})