1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6}: 7 8buildPythonPackage rec { 9 pname = "pymdstat"; 10 version = "0.4.2"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "nicolargo"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "01hj8vyd9f7610sqvzphpr033rvnazbwvl11gi18ia3yqlnlncp0"; 18 }; 19 20 checkPhase = '' 21 ${python.interpreter} $src/unitest.py 22 ''; 23 24 pythonImportsCheck = [ "pymdstat" ]; 25 26 meta = with lib; { 27 description = "A pythonic library to parse Linux /proc/mdstat file"; 28 homepage = "https://github.com/nicolargo/pymdstat"; 29 maintainers = with maintainers; [ rhoriguchi ]; 30 license = licenses.mit; 31 }; 32}