1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Merge pull request #134871 from mausch/pg_activity

pg_activity: init at 2.2.0
This commit is contained in:
Maximilian Bosch 2021-08-20 19:53:18 +02:00 committed by GitHub
commit b6e64f475e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ python3Packages, fetchFromGitHub, lib }:
python3Packages.buildPythonApplication rec {
pname = "pg_activity";
version = "2.2.0";
disabled = python3Packages.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dalibo";
repo = pname;
rev = "v${version}";
sha256 = "145yqjb2rr1k0xz6lclk4fy5zbwcbfkzvn52g9ijjrfl08y15agm";
};
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 ];
};
}

View file

@ -8029,6 +8029,8 @@ with pkgs;
peco = callPackage ../tools/text/peco { };
pg_activity = callPackage ../development/tools/database/pg_activity { };
pg_checksums = callPackage ../development/tools/database/pg_checksums { };
pg_flame = callPackage ../tools/misc/pg_flame { };