2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
psutil,
|
2021-06-01 10:57:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "powerline-mem-segment";
|
|
|
|
version = "2.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-01 10:57:12 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0507zw7g449zk7dcq56adcdp71inbqfdmp6y5yk4x4j7kkp6pii9";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ psutil ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "powerlinemem" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Segment for Powerline showing the current memory usage in percent or absolute values";
|
2021-06-01 10:57:12 +00:00
|
|
|
homepage = "https://github.com/mKaloer/powerline_mem_segment";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ thomasjm ];
|
|
|
|
};
|
|
|
|
}
|