1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 psutil,
6}:
7
8buildPythonPackage rec {
9 pname = "powerline-mem-segment";
10 version = "2.4.1";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "0507zw7g449zk7dcq56adcdp71inbqfdmp6y5yk4x4j7kkp6pii9";
16 };
17
18 propagatedBuildInputs = [ psutil ];
19
20 pythonImportsCheck = [ "powerlinemem" ];
21
22 meta = with lib; {
23 description = "Segment for Powerline showing the current memory usage in percent or absolute values";
24 homepage = "https://github.com/mKaloer/powerline_mem_segment";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ thomasjm ];
27 };
28}