depot/third_party/nixpkgs/pkgs/applications/science/electronics/nanovna-saver/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

52 lines
1.1 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
wrapQtAppsHook,
}:
python3.pkgs.buildPythonApplication rec {
pname = "nanovna-saver";
version = "0.5.3";
src = fetchFromGitHub {
owner = "NanoVNA-Saver";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-wKKjMcOx7NS2VAIk3OTAj7KWE1+CeAzctdgdidT+HMA=";
};
nativeBuildInputs = [ wrapQtAppsHook ];
propagatedBuildInputs = with python3.pkgs; [
cython
scipy
pyqt5
pyserial
numpy
];
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";
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 ];
};
}