3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pymdstat: init at 0.4.2

This commit is contained in:
Ryan Horiguchi 2021-04-16 12:55:44 +02:00
parent ff795a714b
commit fb46c46761
No known key found for this signature in database
GPG key ID: CA7EE98D45A1132A
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,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;
};
}

View file

@ -5995,6 +5995,8 @@ in {
pymc3 = callPackage ../development/python-modules/pymc3 { };
pymdstat = callPackage ../development/python-modules/pymdstat { };
pymediainfo = callPackage ../development/python-modules/pymediainfo { };
pymediaroom = callPackage ../development/python-modules/pymediaroom { };