nixpkgs/pkgs/tools/networking/picosnitch/default.nix

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

43 lines
952 B
Nix
Raw Normal View History

2023-04-15 02:08:13 +00:00
{ lib
, python3
, fetchPypi
2023-04-15 02:08:13 +00:00
, bcc
}:
python3.pkgs.buildPythonApplication rec {
pname = "picosnitch";
2023-07-19 21:35:28 +00:00
version = "0.14.0";
2023-04-15 02:08:13 +00:00
src = fetchPypi {
2023-04-15 02:08:13 +00:00
inherit pname version;
2023-07-19 21:35:28 +00:00
sha256 = "b58255a78a0bf652224ee22ca83137d75ea77b7eb1ad2d11159b56b6788f6201";
2023-04-15 02:08:13 +00:00
};
propagatedBuildInputs = with python3.pkgs; [
setuptools
bcc
psutil
dbus-python
requests
pandas
plotly
dash
2023-07-19 21:35:28 +00:00
geoip2
2023-04-15 02:08:13 +00:00
];
2023-07-19 21:35:28 +00:00
postInstall = ''
substituteInPlace $out/${python3.sitePackages}/picosnitch.py --replace '/run/picosnitch.pid' '/run/picosnitch/picosnitch.pid'
'';
2023-04-15 02:08:13 +00:00
pythonImportsCheck = [ "picosnitch" ];
meta = with lib; {
description = "Monitor network traffic per executable with hashing";
homepage = "https://github.com/elesiuta/picosnitch";
changelog = "https://github.com/elesiuta/picosnitch/releases";
license = licenses.gpl3Plus;
maintainers = [ maintainers.elesiuta ];
platforms = platforms.linux;
};
}