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