mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
pythonPackages.perfplot: init at 0.5.0
This commit is contained in:
parent
d0c125ab6a
commit
119106993e
45
pkgs/development/python-modules/perfplot/default.nix
Normal file
45
pkgs/development/python-modules/perfplot/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
@ -603,6 +603,8 @@ in {
|
||||
|
||||
perf = callPackage ../development/python-modules/perf { };
|
||||
|
||||
perfplot = callPackage ../development/python-modules/perfplot { };
|
||||
|
||||
phonopy = callPackage ../development/python-modules/phonopy { };
|
||||
|
||||
pims = callPackage ../development/python-modules/pims { };
|
||||
|
Loading…
Reference in New Issue
Block a user