2021-08-19 20:26:05 +00:00
|
|
|
{ python3Packages, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pg_activity";
|
2022-02-10 00:16:02 +00:00
|
|
|
version = "2.3.0";
|
2021-08-19 20:26:05 +00:00
|
|
|
disabled = python3Packages.pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dalibo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 00:16:02 +00:00
|
|
|
sha256 = "sha256-O5ACTWsHoIty+QLTGaSuk985qduH7xBjviiH4yCrY2o=";
|
2021-08-19 20:26:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
attrs
|
|
|
|
blessed
|
|
|
|
humanize
|
|
|
|
psutil
|
|
|
|
psycopg2
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pgactivity" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A top like application for PostgreSQL server activity monitoring";
|
|
|
|
homepage = "https://github.com/dalibo/pg_activity";
|
|
|
|
license = licenses.postgresql;
|
|
|
|
maintainers = with maintainers; [ mausch ];
|
|
|
|
};
|
|
|
|
}
|