summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pymdstat/default.nix
blob: badacf8cd9bb4af06f9f25ef1eea00ee285d0af3 (plain)
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
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pymdstat";
  version = "0.4.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nicolargo";
    repo = "pymdstat";
    rev = "v${version}";
    hash = "sha256-ifQZXc+it/UTltHc1ZL2zxJu7GvAxYzzmB4D+mCqEoE=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "pymdstat" ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "unitest.py" ];

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