diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-03-31 11:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 11:09:52 +0200 |
commit | 9b78aaa1717434986ee3d9c964856f7c9866de3f (patch) | |
tree | 457bfd1f8a722fc3dce16fe030b94a24f60b15ae | |
parent | f7cb9035cfbce90dcb766ddde43192c05df3f9f1 (diff) | |
parent | 1869674090060486b671f8d98c144fb6b1cabe8b (diff) |
Merge pull request #193339 from OPNA2608/update/corrscope
corrscope: 0.8.0 -> 0.8.1
-rw-r--r-- | pkgs/applications/video/corrscope/default.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/applications/video/corrscope/default.nix b/pkgs/applications/video/corrscope/default.nix index c254ab6957d9b..36878980b0481 100644 --- a/pkgs/applications/video/corrscope/default.nix +++ b/pkgs/applications/video/corrscope/default.nix @@ -5,27 +5,29 @@ , wrapQtAppsHook , ffmpeg , qtbase +, testers +, corrscope }: mkDerivationWith python3Packages.buildPythonApplication rec { pname = "corrscope"; - version = "0.8.0"; + version = "0.8.1"; format = "pyproject"; src = fetchFromGitHub { owner = "corrscope"; repo = "corrscope"; rev = version; - sha256 = "1wdla4ryif1ss37aqi61lcvzddvf568wyh5s3xv1lrryh4al9vpd"; + sha256 = "sha256-pS7upOYZAjgR3lWxny8TNZEj3Rrbg+L90ANZWFO9UPQ="; }; pythonRelaxDeps = [ "attrs" ]; nativeBuildInputs = [ - python3Packages.pythonRelaxDepsHook wrapQtAppsHook ] ++ (with python3Packages; [ poetry-core + pythonRelaxDepsHook ]); buildInputs = [ @@ -35,6 +37,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec { propagatedBuildInputs = with python3Packages; [ appdirs + appnope atomicwrites attrs click @@ -56,6 +59,14 @@ mkDerivationWith python3Packages.buildPythonApplication rec { ) ''; + passthru.tests.version = testers.testVersion { + package = corrscope; + # Tries writing to + # - $HOME/.local/share/corrscope on Linux + # - $HOME/Library/Application Support/corrscope on Darwin + command = "env HOME=$TMPDIR ${lib.getExe corrscope} --version"; + }; + meta = with lib; { description = "Render wave files into oscilloscope views, featuring advanced correlation-based triggering algorithm"; longDescription = '' @@ -69,5 +80,6 @@ mkDerivationWith python3Packages.buildPythonApplication rec { license = licenses.bsd2; maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.all; + mainProgram = "corr"; }; } |