python3Packages.trsfile: modernize

This commit is contained in:
Stefan Frijters
2026-06-08 18:29:35 +02:00
parent 9361dadbbf
commit 90cfe6da9e
@@ -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 ];
};
}
})