nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 python3Packages,
3 fetchFromGitHub,
4 lib,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "pg_activity";
9 version = "3.6.1";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "dalibo";
14 repo = "pg_activity";
15 tag = "v${version}";
16 sha256 = "sha256-TzY+3RE06TxIrhl75wol9CvZDIz25GfgOx11vkREw2c=";
17 };
18
19 build-system = with python3Packages; [ setuptools ];
20
21 dependencies = with python3Packages; [
22 attrs
23 blessed
24 humanize
25 psutil
26 psycopg2
27 ];
28
29 pythonImportsCheck = [ "pgactivity" ];
30
31 meta = {
32 description = "Top like application for PostgreSQL server activity monitoring";
33 mainProgram = "pg_activity";
34 homepage = "https://github.com/dalibo/pg_activity";
35 license = lib.licenses.postgresql;
36 maintainers = with lib.maintainers; [ mausch ];
37 };
38}