summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymdstat/default.nix
blob: 54c20969786179a09cff12346fe428221b0277bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:

buildPythonPackage rec {
  pname = "pymdstat";
  version = "0.4.2";

  src = fetchFromGitHub {
    owner = "nicolargo";
    repo = pname;
    rev = "v${version}";
    sha256 = "01hj8vyd9f7610sqvzphpr033rvnazbwvl11gi18ia3yqlnlncp0";
  };

  checkPhase = ''
    ${python.interpreter} $src/unitest.py
  '';

  pythonImportsCheck = [ "pymdstat" ];

  meta = with lib; {
    description = "A pythonic library to parse Linux /proc/mdstat file";
    homepage = "https://github.com/nicolargo/pymdstat";
    maintainers = with maintainers; [ rhoriguchi ];
    license = licenses.mit;
  };
}