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