14 buildPythonPackage rec {
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-bu6eYQukhLE8sLkS3PbqTgXOqJFXJYXTcXAhmjaq48g=";
32 propagatedBuildInputs = [
39 # This variable is needed to suppress the "Trace/BPT trap: 5" error in Darwin's checkPhase.
40 # Not sure of the details, but we can avoid it by changing the matplotlib backend during testing.
41 env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg";
47 pythonImportsCheck = [
52 description = "Performance plots for Python code snippets";
53 homepage = "https://github.com/nschloe/perfplot";
54 changelog = "https://github.com/nschloe/perfplot/releases/tag/v${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ ];