504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
31 lines
665 B
Nix
31 lines
665 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymdstat";
|
|
version = "0.4.2";
|
|
format = "setuptools";
|
|
|
|
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;
|
|
};
|
|
}
|