Files
nixpkgs/pkgs/development/python-modules/perfplot/default.nix
T
2023-07-01 21:40:55 +02:00

54 lines
958 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, matplotlib
, matplotx
, numpy
, rich
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "perfplot";
version = "0.10.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-bu6eYQukhLE8sLkS3PbqTgXOqJFXJYXTcXAhmjaq48g=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
matplotlib
matplotx
numpy
rich
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"perfplot"
];
meta = with lib; {
description = "Performance plots for Python code snippets";
homepage = "https://github.com/nschloe/perfplot";
changelog = "https://github.com/nschloe/perfplot/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}