2019-05-20 10:54:54 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-21 10:05:31 +01:00
|
|
|
, flit-core
|
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";
|
2022-01-13 16:58:37 -08:00
|
|
|
version = "0.9.13";
|
2022-01-21 10:05:31 +01:00
|
|
|
format = "pyproject";
|
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;
|
2022-01-21 10:05:31 +01:00
|
|
|
rev = "v${version}";
|
2022-01-13 16:58:37 -08:00
|
|
|
sha256 = "0ry5x38sv8gh505z6ip90jymm7kfgyf80y3vjb2i6z567bnblam6";
|
2019-05-20 10:54:54 -04:00
|
|
|
};
|
2022-01-21 10:05:31 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
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 ];
|
2022-01-21 10:05:31 +01:00
|
|
|
broken = true; # missing matplotx dependency
|
2019-05-20 10:54:54 -04:00
|
|
|
};
|
|
|
|
}
|