Skip to content

Commit

Permalink
[Backport release-24.11] python312Packages.graph-tool: 2.78 -> 2.80 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao authored Dec 15, 2024
2 parents a70c838 + bcbf11d commit fbb1435
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions pkgs/development/python-modules/graph-tool/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
fetchurl,
stdenv,

autoreconfHook,
boost185,
cairomm,
cgal,
Expand Down Expand Up @@ -34,26 +33,19 @@ let
in
buildPythonPackage rec {
pname = "graph-tool";
version = "2.78";
version = "2.80";
format = "other";

src = fetchurl {
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
hash = "sha256-gG9TWKRJISOowRIXI1/ROTIwrVwhxFtMOextXqN6KiU=";
hash = "sha256-wacOB12+co+tJdw/WpqVl4gKbW/2hDW5HSHwtE742+Y=";
};

# Remove error messages about tput during build process without adding ncurses,
# and replace unavailable git commit hash and date.
postPatch = ''
substituteInPlace configure.ac \
# remove error messages about tput during build process without adding ncurses
substituteInPlace configure \
--replace-fail 'tput setaf $1' : \
--replace-fail 'tput sgr0' : \
--replace-fail \
"\"esyscmd(git show | head -n 1 | sed 's/commit //' | grep -o -e '.\{8\}' | head -n 1 |tr -d '\n')\"" \
'["(nixpkgs-${version})"]' \
--replace-fail \
"\"esyscmd(git log -1 | head -n 3 | grep 'Date:' | sed s/'Date: '// | tr -d '\n')\"" \
'["(unavailable)"]'
--replace-fail 'tput sgr0' :
'';

configureFlags = [
Expand All @@ -64,10 +56,7 @@ buildPythonPackage rec {

enableParallelBuilding = true;

build-system = [
autoreconfHook
pkg-config
];
build-system = [ pkg-config ];

# https://graph-tool.skewed.de/installation.html#manual-compilation
dependencies = [
Expand Down

0 comments on commit fbb1435

Please sign in to comment.