blob: efa32358b2dcf1f6f383c77042ebb182e84692b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ python3Packages, fetchFromGitHub, lib }:
python3Packages.buildPythonApplication rec {
pname = "pg_activity";
version = "2.3.1";
disabled = python3Packages.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dalibo";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-oStoZVFf0g1Dj2m+T+8caiKS0o1CnhtQNe/GbnlVUCM=";
};
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 ];
};
}
|