Merge pull request #101244 from zaninime/nanovna-saver

nanovna-saver: init at 0.3.7
This commit is contained in:
Anderson Torres 2020-10-22 20:42:56 -03:00 committed by GitHub
commit 253fb7648c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib, mkDerivationWith, wrapQtAppsHook, python3Packages, fetchFromGitHub
, qtbase }:
let
version = "0.3.7";
pname = "nanovna-saver";
in mkDerivationWith python3Packages.buildPythonApplication {
inherit pname version;
src = fetchFromGitHub {
owner = "NanoVNA-Saver";
repo = pname;
rev = "v${version}";
sha256 = "0c22ckyypg91gfb2sdc684msw28nnb6r8cq3b362gafvv00a35mi";
};
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 ];
};
}

View File

@ -14605,6 +14605,8 @@ in
nanomsg = callPackage ../development/libraries/nanomsg { }; nanomsg = callPackage ../development/libraries/nanomsg { };
nanovna-saver = libsForQt5.callPackage ../applications/science/electronics/nanovna-saver { };
ndpi = callPackage ../development/libraries/ndpi { }; ndpi = callPackage ../development/libraries/ndpi { };
nifticlib = callPackage ../development/libraries/science/biology/nifticlib { }; nifticlib = callPackage ../development/libraries/science/biology/nifticlib { };

View File

@ -6399,6 +6399,16 @@ in {
disabled = !isPy3k; disabled = !isPy3k;
}); });
scipy_1_4 = self.scipy.overridePythonAttrs (oldAttrs: rec {
version = "1.4.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "0ndw7zyxd2dj37775mc75zm4fcyiipnqxclc45mkpxy8lvrvpqfy";
};
doCheck = false;
disabled = !isPy3k;
});
scipy = let scipy = let
scipy_ = callPackage ../development/python-modules/scipy { }; scipy_ = callPackage ../development/python-modules/scipy { };
scipy_1_2 = scipy_.overridePythonAttrs (oldAttrs: rec { scipy_1_2 = scipy_.overridePythonAttrs (oldAttrs: rec {