about summary refs log tree commit diff
path: root/pkgs/development/python-modules/line_profiler
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-05-03 08:50:48 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-05-03 08:50:48 +0200
commit3dfa709706db3fcfb69c6907d2a29dca269caa0a (patch)
tree4936b8b1d2661923ce56680c8f01d444f1560751 /pkgs/development/python-modules/line_profiler
parent8017bc934e5ecc44356737f1765e7e118f1afd53 (diff)
downloadnixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar.gz
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar.bz2
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar.lz
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar.xz
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.tar.zst
nixlib-3dfa709706db3fcfb69c6907d2a29dca269caa0a.zip
pythonPackages.line_profiler: fix build
Diffstat (limited to 'pkgs/development/python-modules/line_profiler')
-rw-r--r--pkgs/development/python-modules/line_profiler/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/line_profiler/default.nix b/pkgs/development/python-modules/line_profiler/default.nix
index e6d6f1e1d7e6..570bba2a8c42 100644
--- a/pkgs/development/python-modules/line_profiler/default.nix
+++ b/pkgs/development/python-modules/line_profiler/default.nix
@@ -3,6 +3,8 @@
 , fetchPypi
 , cython
 , isPyPy
+, ipython
+, python
 }:
 
 buildPythonPackage rec {
@@ -17,8 +19,14 @@ buildPythonPackage rec {
 
   buildInputs = [ cython ];
 
+  propagatedBuildInputs = [ ipython ];
+
   disabled = isPyPy;
 
+  checkPhase = ''
+    ${python.interpreter} -m unittest discover -s tests
+  '';
+
   meta = {
     description = "Line-by-line profiler";
     homepage = https://github.com/rkern/line_profiler;