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