2019-05-20 10:54:54 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-10-10 19:14:13 +01:00
|
|
|
, dufte
|
2019-05-20 10:54:54 -04:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pipdate
|
|
|
|
, tqdm
|
2020-10-10 19:14:13 +01:00
|
|
|
, rich
|
2021-08-01 11:11:21 +02:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-05-20 10:54:54 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "perfplot";
|
2021-08-18 21:21:29 +00:00
|
|
|
version = "0.9.8";
|
2021-08-01 11:11:21 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-05-20 10:54:54 -04:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nschloe";
|
2021-08-01 11:11:21 +02:00
|
|
|
repo = pname;
|
2021-08-18 21:21:29 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "17dpgd27ik7ka7xpk3mj3anbjj62lwygy1vxlmrmk8xbhrqkim8d";
|
2019-05-20 10:54:54 -04:00
|
|
|
};
|
2020-10-10 19:14:13 +01:00
|
|
|
format = "pyproject";
|
2019-05-20 10:54:54 -04:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-10-10 19:14:13 +01:00
|
|
|
dufte
|
2019-05-20 10:54:54 -04:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pipdate
|
2020-10-10 19:14:13 +01:00
|
|
|
rich
|
2019-05-20 10:54:54 -04:00
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-08-01 11:11:21 +02:00
|
|
|
pytestCheckHook
|
2019-05-20 10:54:54 -04:00
|
|
|
];
|
|
|
|
|
2021-08-01 11:11:21 +02:00
|
|
|
pythonImportsCheck = [ "perfplot" ];
|
2019-05-20 10:54:54 -04:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Performance plots for Python code snippets";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/nschloe/perfplot";
|
2019-05-20 10:54:54 -04:00
|
|
|
license = licenses.mit;
|
2021-08-01 11:11:21 +02:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-05-20 10:54:54 -04:00
|
|
|
};
|
|
|
|
}
|