azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / pg / pg_activity / package.nix
blobb58493998abc1496e67f9ca0d89eae916f222b7e
2   python3Packages,
3   fetchFromGitHub,
4   lib,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "pg_activity";
9   version = "3.5.1";
10   disabled = python3Packages.pythonOlder "3.8";
12   src = fetchFromGitHub {
13     owner = "dalibo";
14     repo = pname;
15     tag = "v${version}";
16     sha256 = "sha256-fqRECReeXjdoCieCYIsIumIjcMGN7UUbWHxxAfzm9co=";
17   };
19   propagatedBuildInputs = with python3Packages; [
20     attrs
21     blessed
22     humanize
23     psutil
24     psycopg2
25   ];
27   pythonImportsCheck = [ "pgactivity" ];
29   meta = with lib; {
30     description = "Top like application for PostgreSQL server activity monitoring";
31     mainProgram = "pg_activity";
32     homepage = "https://github.com/dalibo/pg_activity";
33     license = licenses.postgresql;
34     maintainers = with maintainers; [ mausch ];
35   };