File tree Expand file tree Collapse file tree 4 files changed +29
-19
lines changed
development/python-modules/rapidfuzz Expand file tree Collapse file tree 4 files changed +29
-19
lines changed Original file line number Diff line number Diff line change 1- { lib
2- , stdenv
3- , fetchFromGitHub
4- , substituteAll
5- , doctest
6- , cmake
1+ {
2+ cmake ,
3+ doctest ,
4+ fetchFromGitHub ,
5+ lib ,
6+ replaceVars ,
7+ stdenv ,
78} :
89
910stdenv . mkDerivation rec {
1011 pname = "taskflow" ;
11- version = "3.7 .0" ;
12+ version = "3.8 .0" ;
1213
1314 src = fetchFromGitHub {
1415 owner = "taskflow" ;
1516 repo = "taskflow" ;
1617 rev = "v${ version } " ;
17- hash = "sha256-q2IYhG84hPIZhuogWf6ojDG9S9ZyuJz9s14kQyIc6t0 =" ;
18+ hash = "sha256-gim1QQKtzMXz8BmNg5YeN4mcveiid5MrS8IrTaTtZ1Y =" ;
1819 } ;
1920
2021 patches = [
21- ( substituteAll {
22- src = ./unvendor-doctest.patch ;
22+ ( replaceVars ./unvendor-doctest.patch {
2323 inherit doctest ;
2424 } )
2525 ] ;
@@ -40,9 +40,11 @@ stdenv.mkDerivation rec {
4040 meta = {
4141 description = "General-purpose Parallel and Heterogeneous Task Programming System" ;
4242 homepage = "https://taskflow.github.io/" ;
43- changelog = let
44- release = lib . replaceStrings [ "." ] [ "-" ] version ;
45- in "https://taskflow.github.io/taskflow/release-${ release } .html" ;
43+ changelog =
44+ let
45+ release = lib . replaceStrings [ "." ] [ "-" ] version ;
46+ in
47+ "https://taskflow.github.io/taskflow/release-${ release } .html" ;
4648 license = lib . licenses . mit ;
4749 platforms = lib . platforms . unix ;
4850 maintainers = with lib . maintainers ; [ dotlambda ] ;
Original file line number Diff line number Diff line change 11diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
2- index 3397d798..8277191e 100644
2+ index c1fef333..eaf387ea 100644
33--- a/unittests/CMakeLists.txt
44+++ b/unittests/CMakeLists.txt
55@@ -1,6 +1,6 @@
@@ -9,11 +9,11 @@ index 3397d798..8277191e 100644
99+ include(@doctest@/lib/cmake/doctest/doctest.cmake)
1010
1111 list(APPEND TF_UNITTESTS
12- utility
13- @@ -24 ,7 +24 ,7 @@ list(APPEND TF_UNITTESTS
12+ test_utility
13+ @@ -44 ,7 +44 ,7 @@ endif()
1414 foreach(unittest IN LISTS TF_UNITTESTS)
1515 add_executable(${unittest} ${unittest}.cpp)
16- target_link_libraries(${unittest} ${PROJECT_NAME} tf::default_settings)
16+ target_link_libraries(${unittest} ${PROJECT_NAME} ${ATOMIC_LIBRARY} tf::default_settings)
1717- target_include_directories(${unittest} PRIVATE ${TF_3RD_PARTY_DIR}/doctest)
1818+ target_include_directories(${unittest} PRIVATE @doctest@/include/doctest)
1919 doctest_discover_tests(${unittest})
Original file line number Diff line number Diff line change 44 buildPythonPackage ,
55 pythonOlder ,
66 fetchFromGitHub ,
7+ fetchpatch2 ,
78 cmake ,
89 cython ,
910 ninja ,
@@ -31,6 +32,15 @@ buildPythonPackage rec {
3132 hash = "sha256-hLYidU09nCSOi42zgSh7dW83glxIjFY4C6BTmy/sf60=" ;
3233 } ;
3334
35+ patches = [
36+ # https://github.com/rapidfuzz/RapidFuzz/pull/414
37+ ( fetchpatch2 {
38+ name = "support-taskflow-3.8.0.patch" ;
39+ url = "https://github.com/rapidfuzz/RapidFuzz/commit/8f0429bbd970ccc036018b87108845c384911ff7.patch" ;
40+ hash = "sha256-1wizdCkXYEMe5JWXUHCOCuDdS0z76FKimR47B3s2oVU=" ;
41+ } )
42+ ] ;
43+
3444 postPatch = ''
3545 substituteInPlace pyproject.toml \
3646 --replace-fail "Cython >=3.0.11, <3.1.0" "Cython"
Original file line number Diff line number Diff line change @@ -23231,8 +23231,6 @@ with pkgs;
2323123231
2323223232 tagparser = callPackage ../development/libraries/tagparser { };
2323323233
23234- taskflow = callPackage ../development/libraries/taskflow { };
23235-
2323623234 tclap = tclap_1_2;
2323723235
2323823236 tclap_1_2 = callPackage ../development/libraries/tclap/1.2.nix { };
You can’t perform that action at this time.
0 commit comments