3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/flent/default.nix

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

40 lines
1 KiB
Nix
Raw Normal View History

{ lib, buildPythonApplication, fetchPypi, matplotlib, procps, pyqt5, python
2021-05-08 14:45:03 +01:00
, pythonPackages, qt5, sphinx, xvfb-run }:
2018-05-14 16:24:18 +01:00
buildPythonApplication rec {
pname = "flent";
2021-08-14 09:04:24 +01:00
version = "2.0.1";
2019-08-08 13:51:44 +01:00
src = fetchPypi {
inherit pname version;
2021-08-14 09:04:24 +01:00
sha256 = "300a09938dc2b4a0463c9144626f25e0bd736fd47806a9444719fa024d671796";
2018-05-14 16:24:18 +01:00
};
2018-06-07 05:44:51 +01:00
buildInputs = [ sphinx ];
2019-08-08 13:57:04 +01:00
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
2019-08-08 14:03:41 +01:00
propagatedBuildInputs = [ matplotlib procps pyqt5 ];
2021-05-08 14:45:03 +01:00
checkInputs = [ procps pythonPackages.mock pyqt5 xvfb-run ];
2018-06-07 05:44:51 +01:00
2019-08-08 14:03:41 +01:00
checkPhase = ''
cat >test-runner <<EOF
#!/bin/sh
2019-08-08 14:03:41 +01:00
${python.pythonForBuild.interpreter} nix_run_setup test
EOF
chmod +x test-runner
wrapQtApp test-runner --prefix PYTHONPATH : $PYTHONPATH
xvfb-run -s '-screen 0 800x600x24' ./test-runner
'';
2018-05-14 16:24:18 +01:00
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
2019-08-08 13:57:04 +01:00
'';
meta = with lib; {
2018-05-14 16:24:18 +01:00
description = "The FLExible Network Tester";
2019-08-08 13:45:52 +01:00
homepage = "https://flent.org";
2018-05-14 16:24:18 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.mmlb ];
};
}