numcpp: 2.13.0 -> 2.14.1 (#408834)

authored by Arne Keller and committed by GitHub 458f45ce 27268de0

+28 -8
+10 -8
pkgs/by-name/nu/numcpp/package.nix
··· 9 9 }: 10 10 stdenv.mkDerivation (finalAttrs: { 11 11 pname = "numcpp"; 12 - version = "2.13.0"; 12 + version = "2.14.1"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "dpilger26"; 16 16 repo = "NumCpp"; 17 - rev = "Version_${finalAttrs.version}"; 18 - hash = "sha256-+2xd8GNMSKPz801lfMAcHIkmidKd+xM8YblkdFj3HZk="; 17 + tag = "Version_${finalAttrs.version}"; 18 + hash = "sha256-8ghHTRneLeiFgzF9zHFjFu46qopc3l2Svku1H06XQTw="; 19 19 }; 20 + 21 + patches = [ ./pytest-CMakeLists.patch ]; 20 22 21 23 nativeCheckInputs = [ 22 24 gtest ··· 36 38 37 39 postInstall = '' 38 40 substituteInPlace $out/share/NumCpp/cmake/NumCppConfig.cmake \ 39 - --replace "\''${PACKAGE_PREFIX_DIR}/" "" 41 + --replace-fail "\''${PACKAGE_PREFIX_DIR}/" "" 40 42 ''; 41 43 42 44 NIX_CFLAGS_COMPILE = "-Wno-error"; 43 45 44 - meta = with lib; { 46 + meta = { 45 47 description = "Templatized Header Only C++ Implementation of the Python NumPy Library"; 46 48 homepage = "https://github.com/dpilger26/NumCpp"; 47 - license = licenses.mit; 48 - maintainers = with maintainers; [ spalf ]; 49 - platforms = platforms.unix; 49 + license = lib.licenses.mit; 50 + maintainers = with lib.maintainers; [ spalf ]; 51 + platforms = lib.platforms.unix; 50 52 }; 51 53 })
+18
pkgs/by-name/nu/numcpp/pytest-CMakeLists.patch
··· 1 + add --embed to $PYTHON_LD_FLAGS and strip a preceding whitespace to conform to CMP0004 2 + 3 + --- a/test/pytest/src/CMakeLists.txt 4 + +++ b/test/pytest/src/CMakeLists.txt 5 + @@ -56,11 +56,12 @@ find_package(Python 3.11 REQUIRED 6 + if(UNIX) 7 + execute_process( 8 + COMMAND 9 + - python3-config --ldflags 10 + + python3-config --embed --ldflags 11 + OUTPUT_VARIABLE 12 + PYTHON_LD_FLAGS 13 + OUTPUT_STRIP_TRAILING_WHITESPACE 14 + ) 15 + + string(STRIP ${PYTHON_LD_FLAGS} PYTHON_LD_FLAGS) 16 + endif() 17 + 18 + target_link_libraries(${TARGET_NAME} PRIVATE