diff --git a/pkgs/development/python-modules/trsfile/default.nix b/pkgs/development/python-modules/trsfile/default.nix new file mode 100644 index 000000000000..ccfb61c7695b --- /dev/null +++ b/pkgs/development/python-modules/trsfile/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + numpy, + pytestCheckHook, +}: +buildPythonPackage rec { + pname = "trsfile"; + version = "2.2.5"; + + src = fetchFromGitHub { + owner = "Keysight"; + repo = "python-trsfile"; + rev = version; + hash = "sha256-mY4L1FFg2wDWAGVadOca7GDffA05O3v317SCqHxt4F0="; + }; + + pyproject = true; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + numpy + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "trsfile" + ]; + + meta = with lib; { + description = "Python library for reading/writing .trs files used by Riscure Inspector"; + homepage = "https://github.com/Keysight/python-trsfile"; + license = licenses.bsd3; + maintainers = with lib.maintainers; [ mach ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f4ff36be4137..46552f37ab59 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20097,6 +20097,8 @@ self: super: with self; { trove-classifiers = callPackage ../development/python-modules/trove-classifiers { }; + trsfile = callPackage ../development/python-modules/trsfile { }; + trubar = callPackage ../development/python-modules/trubar { }; trueskill = callPackage ../development/python-modules/trueskill { };