taskflow: 3.7.0 -> 3.8.0 (#348681)

This commit is contained in:
Robert Schütz
2024-10-17 20:50:02 -07:00
committed by GitHub
4 changed files with 29 additions and 19 deletions
@@ -1,25 +1,25 @@
{ lib
, stdenv
, fetchFromGitHub
, substituteAll
, doctest
, cmake
{
cmake,
doctest,
fetchFromGitHub,
lib,
replaceVars,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "taskflow";
version = "3.7.0";
version = "3.8.0";
src = fetchFromGitHub {
owner = "taskflow";
repo = "taskflow";
rev = "v${version}";
hash = "sha256-q2IYhG84hPIZhuogWf6ojDG9S9ZyuJz9s14kQyIc6t0=";
hash = "sha256-gim1QQKtzMXz8BmNg5YeN4mcveiid5MrS8IrTaTtZ1Y=";
};
patches = [
(substituteAll {
src = ./unvendor-doctest.patch;
(replaceVars ./unvendor-doctest.patch {
inherit doctest;
})
];
@@ -40,9 +40,11 @@ stdenv.mkDerivation rec {
meta = {
description = "General-purpose Parallel and Heterogeneous Task Programming System";
homepage = "https://taskflow.github.io/";
changelog = let
release = lib.replaceStrings ["."] ["-"] version;
in "https://taskflow.github.io/taskflow/release-${release}.html";
changelog =
let
release = lib.replaceStrings [ "." ] [ "-" ] version;
in
"https://taskflow.github.io/taskflow/release-${release}.html";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ dotlambda ];
@@ -1,5 +1,5 @@
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index 3397d798..8277191e 100644
index c1fef333..eaf387ea 100644
--- a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -1,6 +1,6 @@
@@ -9,11 +9,11 @@ index 3397d798..8277191e 100644
+include(@doctest@/lib/cmake/doctest/doctest.cmake)
list(APPEND TF_UNITTESTS
utility
@@ -24,7 +24,7 @@ list(APPEND TF_UNITTESTS
test_utility
@@ -44,7 +44,7 @@ endif()
foreach(unittest IN LISTS TF_UNITTESTS)
add_executable(${unittest} ${unittest}.cpp)
target_link_libraries(${unittest} ${PROJECT_NAME} tf::default_settings)
target_link_libraries(${unittest} ${PROJECT_NAME} ${ATOMIC_LIBRARY} tf::default_settings)
- target_include_directories(${unittest} PRIVATE ${TF_3RD_PARTY_DIR}/doctest)
+ target_include_directories(${unittest} PRIVATE @doctest@/include/doctest)
doctest_discover_tests(${unittest})
@@ -4,6 +4,7 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
cmake,
cython,
ninja,
@@ -31,6 +32,15 @@ buildPythonPackage rec {
hash = "sha256-hLYidU09nCSOi42zgSh7dW83glxIjFY4C6BTmy/sf60=";
};
patches = [
# https://github.com/rapidfuzz/RapidFuzz/pull/414
(fetchpatch2 {
name = "support-taskflow-3.8.0.patch";
url = "https://github.com/rapidfuzz/RapidFuzz/commit/8f0429bbd970ccc036018b87108845c384911ff7.patch";
hash = "sha256-1wizdCkXYEMe5JWXUHCOCuDdS0z76FKimR47B3s2oVU=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "Cython >=3.0.11, <3.1.0" "Cython"
-2
View File
@@ -23231,8 +23231,6 @@ with pkgs;
tagparser = callPackage ../development/libraries/tagparser { };
taskflow = callPackage ../development/libraries/taskflow { };
tclap = tclap_1_2;
tclap_1_2 = callPackage ../development/libraries/tclap/1.2.nix { };