mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
python3Packages.perfplot: 0.9.5 -> 0.9.6
This commit is contained in:
parent
a5d975648d
commit
5b683507ec
1 changed files with 9 additions and 14 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue