nixpkgs/pkgs/applications/science/electronics/nanovna-saver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-10 11:49:22 +00:00
{
lib,
python3,
fetchFromGitHub,
wrapQtAppsHook,
2021-06-23 14:16:43 +00:00
}:
2022-05-10 11:49:22 +00:00
python3.pkgs.buildPythonApplication rec {
2020-10-21 12:58:52 +00:00
pname = "nanovna-saver";
2022-09-16 14:41:47 +00:00
version = "0.5.3";
2020-10-21 12:58:52 +00:00
src = fetchFromGitHub {
owner = "NanoVNA-Saver";
repo = pname;
2022-09-10 01:28:51 +00:00
rev = "refs/tags/v${version}";
2022-09-16 14:41:47 +00:00
sha256 = "sha256-wKKjMcOx7NS2VAIk3OTAj7KWE1+CeAzctdgdidT+HMA=";
2020-10-21 12:58:52 +00:00
};
nativeBuildInputs = [ wrapQtAppsHook ];
2022-05-10 11:49:22 +00:00
propagatedBuildInputs = with python3.pkgs; [
2020-10-21 12:58:52 +00:00
cython
2021-06-23 14:16:43 +00:00
scipy
2020-10-21 12:58:52 +00:00
pyqt5
pyserial
numpy
];
doCheck = false;
dontWrapGApps = true;
dontWrapQtApps = true;
2021-06-23 16:39:00 +00:00
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
2020-10-21 12:58:52 +00:00
"''${qtWrapperArgs[@]}"
2021-06-23 16:39:00 +00:00
)
2020-10-21 12:58:52 +00:00
'';
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 ];
};
}