Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / database / pg_activity / default.nix
blobc3ec5f9d58027fd8a878bdc9ef1e7e3620967123
1 { python3Packages, fetchFromGitHub, lib }:
3 python3Packages.buildPythonApplication rec {
4   pname = "pg_activity";
5   version = "3.0.3";
6   disabled = python3Packages.pythonOlder "3.6";
8   src = fetchFromGitHub {
9     owner = "dalibo";
10     repo = pname;
11     rev = "refs/tags/v${version}";
12     sha256 = "sha256-djpBdhCgtlm6+DiZVKSKh0nu30YVm/qZHlBHPtdObfU=";
13   };
15   propagatedBuildInputs = with python3Packages; [
16     attrs
17     blessed
18     humanize
19     psutil
20     psycopg2
21   ];
23   pythonImportsCheck = [ "pgactivity" ];
25   meta = with lib; {
26     description = "A top like application for PostgreSQL server activity monitoring";
27     homepage = "https://github.com/dalibo/pg_activity";
28     license = licenses.postgresql;
29     maintainers = with maintainers; [ mausch ];
30   };