From 2e7baecd201cfdcff92a322dc9e58a05fe0f03e5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 31 Dec 2021 03:16:20 +0000 Subject: [PATCH 1/2] python38Packages.line_profiler: 3.3.1 -> 3.4.0 --- pkgs/development/python-modules/line_profiler/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/line_profiler/default.nix b/pkgs/development/python-modules/line_profiler/default.nix index 3ca82c968966..43865ce1aec4 100644 --- a/pkgs/development/python-modules/line_profiler/default.nix +++ b/pkgs/development/python-modules/line_profiler/default.nix @@ -11,11 +11,11 @@ buildPythonPackage rec { pname = "line_profiler"; - version = "3.3.1"; + version = "3.4.0"; src = fetchPypi { inherit pname version; - sha256 = "6e2fb792ca022f900f374f9659fd3e7c530cd4df7d3b7e84be889093b487639f"; + sha256 = "b6b0a8100a2829358e31ef7c6f427b1dcf2b1d8e5d38b55b219719ecf758aee5"; }; nativeBuildInputs = [ From 7bb8f13348fee3ed33baf3714b8bc08d89a38977 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 1 Jan 2022 10:40:54 +0100 Subject: [PATCH 2/2] python3Packages.line_profiler: update meta --- .../python-modules/line_profiler/default.nix | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/line_profiler/default.nix b/pkgs/development/python-modules/line_profiler/default.nix index 43865ce1aec4..76aa30f06980 100644 --- a/pkgs/development/python-modules/line_profiler/default.nix +++ b/pkgs/development/python-modules/line_profiler/default.nix @@ -7,14 +7,18 @@ , python , scikit-build , cmake +, pythonOlder }: buildPythonPackage rec { - pname = "line_profiler"; + pname = "line-profiler"; version = "3.4.0"; + disabled = pythonOlder "3.6" || isPyPy; + src = fetchPypi { - inherit pname version; + pname = "line_profiler"; + inherit version; sha256 = "b6b0a8100a2829358e31ef7c6f427b1dcf2b1d8e5d38b55b219719ecf758aee5"; }; @@ -24,30 +28,32 @@ buildPythonPackage rec { scikit-build ]; - dontUseCmakeConfigure = true; - propagatedBuildInputs = [ ipython ]; - disabled = isPyPy; - - preBuild = '' - rm -f _line_profiler.c - ''; - checkInputs = [ ipython ]; + dontUseCmakeConfigure = true; + + preBuild = '' + rm -f _line_profiler.c + ''; + checkPhase = '' PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s . ''; - meta = { + pythonImportsCheck = [ + "line_profiler" + ]; + + meta = with lib; { description = "Line-by-line profiler"; - homepage = "https://github.com/rkern/line_profiler"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ fridh ]; + homepage = "https://github.com/pyutils/line_profiler"; + license = licenses.bsd3; + maintainers = with maintainers; [ fridh ]; }; }