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-08-12 12:06:08 +00:00
|
|
|
version = "0.10.2";
|
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-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-bu6eYQukhLE8sLkS3PbqTgXOqJFXJYXTcXAhmjaq48g=";
|
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
|
|
|
};
|
|
|
|
}
|