nixpkgs-suyu/pkgs/development/python-modules/perfplot/default.nix

46 lines
773 B
Nix
Raw Normal View History

2019-05-20 16:54:54 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, pipdate
, tqdm
, pytest
, isPy27
}:
buildPythonPackage rec {
pname = "perfplot";
version = "0.5.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "nschloe";
repo = "perfplot";
rev = "v${version}";
sha256 = "16aj5ryjic1k3qn8xhpw6crczvxcs691vs5kv4pvb1zdx69g1xbv";
};
propagatedBuildInputs = [
matplotlib
numpy
pipdate
tqdm
];
checkInputs = [
pytest
];
checkPhase = ''
HOME=$(mktemp -d) pytest test/perfplot_test.py
'';
meta = with lib; {
description = "Performance plots for Python code snippets";
homepage = https://github.com/nschloe/perfplot;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}