mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
32 lines
665 B
Nix
32 lines
665 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymdstat";
|
|
version = "0.4.2";
|
|
format = "setuptools";
|
|
|
|
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;
|
|
};
|
|
}
|