2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2020-10-27 00:29:36 +00:00
|
|
|
|
|
|
|
let
|
2021-06-28 23:13:55 +00:00
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
scipy = super.scipy.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.4.1";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0ndw7zyxd2dj37775mc75zm4fcyiipnqxclc45mkpxy8lvrvpqfy";
|
|
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in python.pkgs.buildPythonApplication rec {
|
2020-10-27 00:29:36 +00:00
|
|
|
pname = "nanovna-saver";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.3.8";
|
2020-10-27 00:29:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NanoVNA-Saver";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "0z83rwpnbbs1n74mx8dgh1d1crp90mannj9vfy161dmy4wzc5kpv";
|
2020-10-27 00:29:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2020-10-27 00:29:36 +00:00
|
|
|
cython
|
2021-06-28 23:13:55 +00:00
|
|
|
scipy
|
2020-10-27 00:29:36 +00:00
|
|
|
pyqt5
|
|
|
|
pyserial
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(
|
|
|
|
"''${gappsWrapperArgs[@]}"
|
2020-10-27 00:29:36 +00:00
|
|
|
"''${qtWrapperArgs[@]}"
|
2021-06-28 23:13:55 +00:00
|
|
|
)
|
2020-10-27 00:29:36 +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 ];
|
|
|
|
};
|
|
|
|
}
|