81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
54 lines
939 B
Nix
54 lines
939 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, dufte
|
|
, matplotlib
|
|
, numpy
|
|
, pipdate
|
|
, tqdm
|
|
, rich
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "perfplot";
|
|
version = "0.9.13";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nschloe";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0ry5x38sv8gh505z6ip90jymm7kfgyf80y3vjb2i6z567bnblam6";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dufte
|
|
matplotlib
|
|
numpy
|
|
pipdate
|
|
rich
|
|
tqdm
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "perfplot" ];
|
|
|
|
meta = with lib; {
|
|
description = "Performance plots for Python code snippets";
|
|
homepage = "https://github.com/nschloe/perfplot";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
broken = true; # missing matplotx dependency
|
|
};
|
|
}
|