Files
nixpkgs/pkgs/development/python-modules/line_profiler/default.nix
T

35 lines
659 B
Nix
Raw Normal View History

2017-04-18 11:50:18 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, cython
, isPyPy
2017-05-03 08:50:48 +02:00
, ipython
, python
2017-04-18 11:50:18 +02:00
}:
buildPythonPackage rec {
pname = "line_profiler";
2017-12-30 12:24:16 +01:00
version = "2.1.2";
2017-04-18 11:50:18 +02:00
src = fetchPypi {
inherit pname version;
2017-12-30 12:24:16 +01:00
sha256 = "efa66e9e3045aa7cb1dd4bf0106e07dec9f80bc781a993fbaf8162a36c20af5c";
2017-04-18 11:50:18 +02:00
};
buildInputs = [ cython ];
2017-05-03 08:50:48 +02:00
propagatedBuildInputs = [ ipython ];
2017-04-18 11:50:18 +02:00
disabled = isPyPy;
2017-05-03 08:50:48 +02:00
checkPhase = ''
${python.interpreter} -m unittest discover -s tests
'';
2017-04-18 11:50:18 +02:00
meta = {
description = "Line-by-line profiler";
homepage = https://github.com/rkern/line_profiler;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}