From ebde39a6a0c8e2780bb5cab6c8ad82854d936de2 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 19:46:36 +0700 Subject: [PATCH] python3Packages.aqipy-atmotech: modernize --- .../development/python-modules/aqipy-atmotech/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aqipy-atmotech/default.nix b/pkgs/development/python-modules/aqipy-atmotech/default.nix index 01e2d633ee56..ec89b139456d 100644 --- a/pkgs/development/python-modules/aqipy-atmotech/default.nix +++ b/pkgs/development/python-modules/aqipy-atmotech/default.nix @@ -6,7 +6,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aqipy-atmotech"; version = "0.1.5"; pyproject = true; @@ -14,7 +14,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "atmotube"; repo = "aqipy"; - rev = version; + tag = finalAttrs.version; hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y="; }; @@ -24,7 +24,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "'pytest-runner'" "" + --replace-fail "'pytest-runner'" "" ''; pythonImportsCheck = [ "aqipy" ]; @@ -35,4 +35,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})