mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
32 lines
760 B
Nix
32 lines
760 B
Nix
{ 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 ];
|
|
};
|
|
}
|