1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "ps_mem";
9 version = "3.14";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "pixelb";
14 repo = "ps_mem";
15 rev = "v${version}";
16 hash = "sha256-jCfPtPSky/QFk9Xo/tq3W7609Pie1yLC4iS4dqjCa+E=";
17 };
18
19 build-system = with python3Packages; [ setuptools ];
20
21 pythonImportsCheck = [ "ps_mem" ];
22
23 meta = {
24 description = "Utility to accurately report the in core memory usage for a program";
25 homepage = "https://github.com/pixelb/ps_mem";
26 license = lib.licenses.lgpl21;
27 maintainers = with lib.maintainers; [ sigmanificient ];
28 platforms = lib.platforms.linux;
29 mainProgram = "ps_mem";
30 };
31}