Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 872 B view raw
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 disabled = python3Packages.pythonOlder "3.8"; 12 13 src = fetchFromGitHub { 14 owner = "dalibo"; 15 repo = "pg_activity"; 16 tag = "v${version}"; 17 sha256 = "sha256-TzY+3RE06TxIrhl75wol9CvZDIz25GfgOx11vkREw2c="; 18 }; 19 20 build-system = with python3Packages; [ setuptools ]; 21 22 dependencies = with python3Packages; [ 23 attrs 24 blessed 25 humanize 26 psutil 27 psycopg2 28 ]; 29 30 pythonImportsCheck = [ "pgactivity" ]; 31 32 meta = with lib; { 33 description = "Top like application for PostgreSQL server activity monitoring"; 34 mainProgram = "pg_activity"; 35 homepage = "https://github.com/dalibo/pg_activity"; 36 license = licenses.postgresql; 37 maintainers = with maintainers; [ mausch ]; 38 }; 39}