2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-02-10 20:34:41 +00:00
|
|
|
, flit-core
|
2020-10-16 20:44:37 +00:00
|
|
|
, dufte
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pipdate
|
|
|
|
, tqdm
|
2020-10-16 20:44:37 +00:00
|
|
|
, rich
|
2021-08-05 21:33:18 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "perfplot";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.10.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2021-08-05 21:33:18 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nschloe";
|
2021-08-05 21:33:18 +00:00
|
|
|
repo = pname;
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-5qZolEJWjhqk1JakcGBWZ1hxeP1cLqcB7IZ3ufjOC/o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-10-16 20:44:37 +00:00
|
|
|
dufte
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pipdate
|
2020-10-16 20:44:37 +00:00
|
|
|
rich
|
2020-04-24 23:36:52 +00:00
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-08-05 21:33:18 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
pythonImportsCheck = [ "perfplot" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Performance plots for Python code snippets";
|
|
|
|
homepage = "https://github.com/nschloe/perfplot";
|
|
|
|
license = licenses.mit;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2022-02-10 20:34:41 +00:00
|
|
|
broken = true; # missing matplotx dependency
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|