Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 55 lines 1.4 kB view raw
1{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook, 2pkgconfig, boost, expat, scipy, numpy, cgal, gmp, mpfr, lndir, 3gobjectIntrospection, pygobject3, gtk3, matplotlib, ncurses, 4buildPythonPackage }: 5 6buildPythonPackage rec { 7 format = "other"; 8 version = "2.26"; 9 name = "${python.libPrefix}-graph-tool-${version}"; 10 11 meta = with stdenv.lib; { 12 description = "Python module for manipulation and statistical analysis of graphs"; 13 homepage = http://graph-tool.skewed.de/; 14 license = licenses.gpl3; 15 platforms = platforms.all; 16 maintainers = [ stdenv.lib.maintainers.joelmo ]; 17 }; 18 19 src = fetchurl { 20 url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2"; 21 sha256 = "0w7pd2h8ayr88kjl82c8fdshnk6f3xslc77gy7ma09zkbvf76qnz"; 22 }; 23 24 configureFlags = [ 25 "--with-python-module-path=$(out)/${python.sitePackages}" 26 "--with-boost-libdir=${boost}/lib" 27 "--with-expat=${expat}" 28 "--with-cgal=${cgal}" 29 "--enable-openmp" 30 ]; 31 32 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 33 buildInputs = [ ncurses ]; 34 35 propagatedBuildInputs = [ 36 boost 37 cgal 38 expat 39 gmp 40 mpfr 41 python 42 scipy 43 # optional 44 sparsehash 45 # drawing 46 cairomm 47 gobjectIntrospection 48 gtk3 49 pycairo 50 matplotlib 51 pygobject3 52 ]; 53 54 enableParallelBuilding = false; 55}