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

52 lines
1.2 KiB
Nix
Raw Normal View History

2020-10-21 14:58:52 +02:00
{ lib, mkDerivationWith, wrapQtAppsHook, python3Packages, fetchFromGitHub
, qtbase }:
let
2021-01-01 11:47:03 +01:00
version = "0.3.8";
2020-10-21 14:58:52 +02:00
pname = "nanovna-saver";
in mkDerivationWith python3Packages.buildPythonApplication {
inherit pname version;
src = fetchFromGitHub {
owner = "NanoVNA-Saver";
repo = pname;
rev = "v${version}";
2021-01-01 11:47:03 +01:00
sha256 = "0z83rwpnbbs1n74mx8dgh1d1crp90mannj9vfy161dmy4wzc5kpv";
2020-10-21 14:58:52 +02:00
};
nativeBuildInputs = [ wrapQtAppsHook ];
propagatedBuildInputs = with python3Packages; [
cython
scipy_1_4
pyqt5
pyserial
numpy
];
doCheck = false;
dontWrapGApps = true;
dontWrapQtApps = true;
postFixup = ''
wrapProgram $out/bin/NanoVNASaver \
"''${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 ];
};
}