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 ]; }; -} +})