Merge pull request #295021 from Aleksanaa/gnome-graphs

authored by Sandro and committed by GitHub 4533910a 7f175e69

+71
+71
pkgs/by-name/gn/gnome-graphs/package.nix
··· 1 + { lib 2 + , python3Packages 3 + , fetchFromGitLab 4 + , meson 5 + , ninja 6 + , vala 7 + , pkg-config 8 + , gobject-introspection 9 + , blueprint-compiler 10 + , wrapGAppsHook4 11 + , desktop-file-utils 12 + , shared-mime-info 13 + , libadwaita 14 + }: 15 + 16 + python3Packages.buildPythonApplication rec { 17 + pname = "gnome-graphs"; 18 + version = "1.7.2"; 19 + pyproject = false; 20 + 21 + src = fetchFromGitLab { 22 + domain = "gitlab.gnome.org"; 23 + owner = "World"; 24 + repo = "Graphs"; 25 + rev = "v${version}"; 26 + hash = "sha256-CgCLOkKrMEN0Jnib5NZyVa+s3ico2ANt0ALGa4we3Ak="; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + meson 31 + ninja 32 + vala 33 + pkg-config 34 + gobject-introspection 35 + blueprint-compiler 36 + wrapGAppsHook4 37 + desktop-file-utils 38 + shared-mime-info 39 + ]; 40 + 41 + buildInputs = [ 42 + libadwaita 43 + ]; 44 + 45 + propagatedBuildInputs = with python3Packages; [ 46 + pygobject3 47 + numpy 48 + numexpr 49 + sympy 50 + scipy 51 + matplotlib 52 + ]; 53 + 54 + dontWrapGApps = true; 55 + 56 + preFixup = '' 57 + makeWrapperArgs+=( 58 + "''${gappsWrapperArgs[@]}" 59 + --prefix LD_LIBRARY_PATH : $out/lib 60 + ) 61 + ''; 62 + 63 + meta = with lib; { 64 + description = "A simple, yet powerful tool that allows you to plot and manipulate your data with ease"; 65 + homepage = "https://apps.gnome.org/Graphs"; 66 + license = licenses.gpl3Plus; 67 + mainProgram = "graphs"; 68 + maintainers = with maintainers; [ aleksana ]; 69 + platforms = platforms.linux; # locale.bindtextdomain only available on linux 70 + }; 71 + }