python3Packages.perfplot: 0.9.5 -> 0.9.6

This commit is contained in:
Fabian Affolter 2021-08-01 11:11:21 +02:00
parent a5d975648d
commit 5b683507ec

View file

@ -7,20 +7,20 @@
, pipdate
, tqdm
, rich
, pytest
, isPy27
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "perfplot";
version = "0.9.5";
disabled = isPy27;
version = "0.9.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nschloe";
repo = "perfplot";
repo = pname;
rev = "v${version}";
sha256 = "1nr31a7qvipqjycw2flkabnhnc4drbi1xpjm8yjxw2gjzznd1jg4";
sha256 = "11f31d6xqxp04693symc2dl8890gjaycrb2a35y5xy023abwir5b";
};
format = "pyproject";
@ -34,20 +34,15 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytestCheckHook
];
checkPhase = ''
export HOME=$TMPDIR
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
pytest test/perfplot_test.py
'';
pythonImportsCheck = [ "perfplot" ];
meta = with lib; {
description = "Performance plots for Python code snippets";
homepage = "https://github.com/nschloe/perfplot";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}