Merge pull request #265256 from natsukium/line-profiler

python311Packages.line-profiler: 4.0.2 -> 4.1.2; rename from line_profiler

authored by

OTABI Tomoya and committed by
GitHub
881d3941 3a99d1b6

+137 -12
+13 -11
pkgs/development/python-modules/line_profiler/default.nix pkgs/development/python-modules/line-profiler/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , cython 4 + , cython_3 5 5 , isPyPy 6 6 , ipython 7 - , python 8 7 , scikit-build 9 8 , cmake 10 9 , pythonOlder 11 10 , pytestCheckHook 11 + , ubelt 12 12 }: 13 13 14 14 buildPythonPackage rec { 15 15 pname = "line-profiler"; 16 - version = "4.0.2"; 16 + version = "4.1.2"; 17 17 format = "setuptools"; 18 18 19 19 disabled = pythonOlder "3.6" || isPyPy; ··· 21 21 src = fetchPypi { 22 22 pname = "line_profiler"; 23 23 inherit version; 24 - hash = "sha256-JejJ1CSNxIkFgBhR/4p1ucdIJ6CHHRGNEQTY5D1/sPw="; 24 + hash = "sha256-qlZXiw/1p1b+GAs/2nvWfCe71Hiz0BJGEtjPAOSiHfI="; 25 25 }; 26 26 27 27 nativeBuildInputs = [ 28 - cython 28 + cython_3 29 29 cmake 30 30 scikit-build 31 31 ]; 32 32 33 - propagatedBuildInputs = [ 34 - ipython 35 - ]; 33 + passthru.optional-dependencies = { 34 + ipython = [ ipython ]; 35 + }; 36 36 37 37 nativeCheckInputs = [ 38 38 pytestCheckHook 39 - ]; 39 + ubelt 40 + ] ++ passthru.optional-dependencies.ipython; 40 41 41 42 dontUseCmakeConfigure = true; 42 43 ··· 44 45 rm -f _line_profiler.c 45 46 ''; 46 47 47 - checkPhase = '' 48 - PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s . 48 + preCheck = '' 49 + rm -r line_profiler 50 + export PATH=$out/bin:$PATH 49 51 ''; 50 52 51 53 pythonImportsCheck = [
+70
pkgs/development/python-modules/ubelt/default.nix
··· 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , pythonOlder 6 + , setuptools 7 + , wheel 8 + , numpy 9 + , python-dateutil 10 + , xxhash 11 + , pytestCheckHook 12 + , requests 13 + , xdoctest 14 + }: 15 + 16 + buildPythonPackage rec { 17 + pname = "ubelt"; 18 + version = "1.3.4"; 19 + pyproject = true; 20 + 21 + disabled = pythonOlder "3.6"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "Erotemic"; 25 + repo = "ubelt"; 26 + rev = "refs/tags/v${version}"; 27 + hash = "sha256-pvCmmdPRLupMUCiOvfa+JTX8NPFZ/UcXSPEaaDG3eTk="; 28 + }; 29 + 30 + nativeBuildInputs = [ 31 + setuptools 32 + wheel 33 + ]; 34 + 35 + passthru.optional-dependencies = { 36 + optional = [ 37 + numpy 38 + python-dateutil 39 + xxhash 40 + ]; 41 + }; 42 + 43 + nativeCheckInputs = [ 44 + pytestCheckHook 45 + requests 46 + xdoctest 47 + ]; 48 + 49 + preCheck = '' 50 + export HOME=$TMPDIR 51 + ''; 52 + 53 + disabledTests = lib.optionals stdenv.isDarwin [ 54 + # fail due to sandbox environment 55 + "CacheStamp.expired" 56 + "userhome" 57 + ]; 58 + 59 + pythonImportsCheck = [ "ubelt" ]; 60 + 61 + __darwinAllowLocalNetworking = true; 62 + 63 + meta = with lib; { 64 + description = "A Python utility library with a stdlib like feel and extra batteries. Paths, Progress, Dicts, Downloads, Caching, Hashing: ubelt makes it easy"; 65 + homepage = "https://github.com/Erotemic/ubelt"; 66 + changelog = "https://github.com/Erotemic/ubelt/blob/${src.rev}/CHANGELOG.md"; 67 + license = licenses.asl20; 68 + maintainers = with maintainers; [ natsukium ]; 69 + }; 70 + }
+48
pkgs/development/python-modules/xdoctest/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , setuptools 6 + , wheel 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "xdoctest"; 12 + version = "1.1.2"; 13 + pyproject = true; 14 + 15 + disabled = pythonOlder "3.6"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "Erotemic"; 19 + repo = "xdoctest"; 20 + rev = "refs/tags/v${version}"; 21 + hash = "sha256-yTu5ldr9TkpYRP8hjgUPpexBVLjaK2gfPvISjMJLY74="; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + setuptools 26 + wheel 27 + ]; 28 + 29 + nativeCheckInputs = [ 30 + pytestCheckHook 31 + ]; 32 + 33 + preCheck = '' 34 + export HOME=$TMPDIR 35 + export PATH=$out/bin:$PATH 36 + ''; 37 + 38 + pythonImportsCheck = [ "xdoctest" ]; 39 + 40 + meta = with lib; { 41 + description = "A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX"; 42 + homepage = "https://github.com/Erotemic/xdoctest"; 43 + changelog = "https://github.com/Erotemic/xdoctest/blob/${src.rev}/CHANGELOG.md"; 44 + license = licenses.asl20; 45 + maintainers = with maintainers; [ natsukium ]; 46 + mainProgram = "xdoctest"; 47 + }; 48 + }
+1
pkgs/top-level/python-aliases.nix
··· 221 221 lazr_delegates = lazr-delegates; # added 2023-11-03 222 222 lazy_imports = lazy-imports; # added 2023-10-13 223 223 lektor = throw "lektor has been promoted to a top-level attribute"; # added 2023-08-01 224 + line_profiler = line-profiler; # added 2023-11-04 224 225 logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29 225 226 logilab_common = logilab-common; # added 2022-11-21 226 227 loo-py = loopy; # added 2022-05-03
+5 -1
pkgs/top-level/python-packages.nix
··· 6336 6336 6337 6337 lineedit = callPackage ../development/python-modules/lineedit { }; 6338 6338 6339 - line_profiler = callPackage ../development/python-modules/line_profiler { }; 6339 + line-profiler = callPackage ../development/python-modules/line-profiler { }; 6340 6340 6341 6341 linetable = callPackage ../development/python-modules/linetable { }; 6342 6342 ··· 15159 15159 15160 15160 uasiren = callPackage ../development/python-modules/uasiren { }; 15161 15161 15162 + ubelt = callPackage ../development/python-modules/ubelt { }; 15163 + 15162 15164 uc-micro-py = callPackage ../development/python-modules/uc-micro-py { }; 15163 15165 15164 15166 ucsmsdk = callPackage ../development/python-modules/ucsmsdk { }; ··· 15788 15790 xdg-base-dirs = callPackage ../development/python-modules/xdg-base-dirs { }; 15789 15791 15790 15792 xdis = callPackage ../development/python-modules/xdis { }; 15793 + 15794 + xdoctest = callPackage ../development/python-modules/xdoctest { }; 15791 15795 15792 15796 xdot = callPackage ../development/python-modules/xdot { 15793 15797 inherit (pkgs) graphviz;