11 , buildTests ? false # Needs tensorflow
14 stdenv.mkDerivation (finalAttrs: {
15 pname = "frugally-deep";
16 version = "0.15.24-p0";
18 src = fetchFromGitHub {
20 repo = "frugally-deep";
21 rev = "v${finalAttrs.version}";
22 hash = "sha256-yg2SMsYOOSOgsdwIH1bU3iPM45z6c7WeIrgOddt3um4=";
27 ] ++ lib.optionals buildTests [
28 python3Packages.python
32 buildInputs = lib.optionals buildTests [
34 python3Packages.tensorflow
37 propagatedBuildInputs = [
43 cmakeFlags = lib.optionals buildTests [ "-DFDEEP_BUILD_UNITTEST=ON" ];
44 passthru.updateScript = gitUpdater;
47 description = "Header-only library for using Keras (TensorFlow) models in C++";
48 homepage = "https://github.com/Dobiasd/frugally-deep";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ Madouura ];
51 platforms = platforms.linux;