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
951 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-10-23 21:40:32 +00:00
version = "1.0.1";
2023-04-15 02:08:13 +00:00
src = fetchPypi {
2023-04-15 02:08:13 +00:00
inherit pname version;
2023-10-23 21:40:32 +00:00
sha256 = "5d427eb46de448e4109f68ed435dd38426df8200aea5bb668639aabe1f0b4580";
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;
};
}