f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
qt6,
|
|
}:
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "nanovna-saver";
|
|
version = "0.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NanoVNA-Saver";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-fAVsjknhLhsrGdHu2Q6JWLoFoxZoc+wDCNja+ySCsR4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qt6.wrapQtAppsHook
|
|
qt6.qtbase
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
cython
|
|
scipy
|
|
pyqt6
|
|
pyserial
|
|
numpy
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
dontWrapGApps = true;
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
"''${gappsWrapperArgs[@]}"
|
|
"''${qtWrapperArgs[@]}"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/NanoVNA-Saver/nanovna-saver";
|
|
description =
|
|
"A tool for reading, displaying and saving data from the NanoVNA";
|
|
mainProgram = "NanoVNASaver";
|
|
longDescription = ''
|
|
A multiplatform tool to save Touchstone files from the NanoVNA, sweep
|
|
frequency spans in segments to gain more than 101 data points, and
|
|
generally display and analyze the resulting data.
|
|
'';
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ zaninime tmarkus ];
|
|
};
|
|
}
|