From 119106993e2d774661f1bfc6c4a77bd149c80cb6 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 20 May 2019 10:54:54 -0400 Subject: [PATCH] pythonPackages.perfplot: init at 0.5.0 --- .../python-modules/perfplot/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/perfplot/default.nix diff --git a/pkgs/development/python-modules/perfplot/default.nix b/pkgs/development/python-modules/perfplot/default.nix new file mode 100644 index 000000000000..4e451e816c0a --- /dev/null +++ b/pkgs/development/python-modules/perfplot/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 36cb65eada33..19b1bbbc5374 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };