From 90cfe6da9e0ede5bc90811d2a2a967691b975463 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 8 Jun 2026 18:26:37 +0200 Subject: [PATCH] python3Packages.trsfile: modernize --- pkgs/development/python-modules/trsfile/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/trsfile/default.nix b/pkgs/development/python-modules/trsfile/default.nix index 8806087725b9..156a21d63ad8 100644 --- a/pkgs/development/python-modules/trsfile/default.nix +++ b/pkgs/development/python-modules/trsfile/default.nix @@ -7,20 +7,20 @@ numpy, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "trsfile"; version = "2.2.5"; src = fetchFromGitHub { owner = "Keysight"; repo = "python-trsfile"; - rev = version; + tag = finalAttrs.version; hash = "sha256-mY4L1FFg2wDWAGVadOca7GDffA05O3v317SCqHxt4F0="; }; pyproject = true; - env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version; build-system = [ setuptools @@ -39,10 +39,10 @@ buildPythonPackage rec { "trsfile" ]; - meta = with lib; { + meta = { description = "Python library for reading/writing .trs files used by Riscure Inspector"; homepage = "https://github.com/Keysight/python-trsfile"; - license = licenses.bsd3; + license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ mach ]; }; -} +})