diff options
author | Ryan Horiguchi <ryan.horiguchi@gmail.com> | 2021-04-16 12:55:44 +0200 |
---|---|---|
committer | Ryan Horiguchi <ryan.horiguchi@gmail.com> | 2021-04-22 12:41:52 +0200 |
commit | fb46c46761c7d720ba4e93959625bd02e690c619 (patch) | |
tree | 7604d9dd872badfbb1911dcc4792478a4c5ab27a /pkgs/development/python-modules/pymdstat | |
parent | ff795a714b5488c18d0bb73ad9ab8ef3b6328472 (diff) |
python3Packages.pymdstat: init at 0.4.2
Diffstat (limited to 'pkgs/development/python-modules/pymdstat')
-rw-r--r-- | pkgs/development/python-modules/pymdstat/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymdstat/default.nix b/pkgs/development/python-modules/pymdstat/default.nix new file mode 100644 index 0000000000000..54c2096978617 --- /dev/null +++ b/pkgs/development/python-modules/pymdstat/default.nix @@ -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; + }; +} |