1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pymdstat";
11 version = "0.4.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "nicolargo";
16 repo = "pymdstat";
17 rev = "v${version}";
18 hash = "sha256-ifQZXc+it/UTltHc1ZL2zxJu7GvAxYzzmB4D+mCqEoE=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "pymdstat" ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 enabledTestPaths = [ "unitest.py" ];
28
29 meta = with lib; {
30 description = "Pythonic library to parse Linux /proc/mdstat file";
31 homepage = "https://github.com/nicolargo/pymdstat";
32 maintainers = with maintainers; [ rhoriguchi ];
33 license = licenses.mit;
34 };
35}