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