blob: 4e451e816c0a5f6ac557308e90a0a71145cab495 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ 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 ];
};
}
|