mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
39 lines
843 B
Nix
39 lines
843 B
Nix
{
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "pg_activity";
|
|
version = "3.6.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dalibo";
|
|
repo = "pg_activity";
|
|
tag = "v${finalAttrs.version}";
|
|
sha256 = "sha256-W5R521eyJjblCE5NG546ItMZo0CeBAhFLxMHUrbRGms=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
attrs
|
|
blessed
|
|
humanize
|
|
psutil
|
|
psycopg2
|
|
];
|
|
|
|
pythonImportsCheck = [ "pgactivity" ];
|
|
|
|
meta = {
|
|
description = "Top like application for PostgreSQL server activity monitoring";
|
|
mainProgram = "pg_activity";
|
|
homepage = "https://github.com/dalibo/pg_activity";
|
|
license = lib.licenses.postgresql;
|
|
maintainers = with lib.maintainers; [ mausch ];
|
|
};
|
|
})
|