My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pymdstat/default.nix

30 lines
640 B

{ 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;
};
}