Commit d8e5160b authored by Timo Kaufmann's avatar Timo Kaufmann Committed by Robert Schütz
Browse files

planarity: init at 3.0.0.5 (#38800)

parent ddb7c0e9
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
}:

stdenv.mkDerivation rec {
  pname = "planarity";
  version = "3.0.0.5";
  name = "${pname}-${version}";

  src = fetchFromGitHub {
    owner = "graph-algorithms";
    repo = "edge-addition-planarity-suite";
    rev = "Version_${version}";
    sha256 = "01cm7ay1njkfsdnmnvh5zwc7wg7x189hq1vbfhh9p3ihrbnmqzh8";
  };

  nativeBuildInputs = [
    autoreconfHook
  ];

  doCheck = true;

  patches = [
    # declare variables declared in headers as extern, not yet merged upstream
    (fetchpatch {
      url = "https://github.com/graph-algorithms/edge-addition-planarity-suite/pull/3.patch";
      sha256 = "1nqjc4clr326imz4jxqxcxv2hgh1sjgzll27k5cwkdin8lnmmil8";
    })
  ];

  meta = with stdenv.lib; {
    homepage = https://github.com/graph-algorithms/edge-addition-planarity-suite;
    description = "A library for implementing graph algorithms";
    license = licenses.bsd3;
    maintainers = with maintainers; [ timokau ];
    platforms = platforms.unix;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -19843,6 +19843,8 @@ with pkgs;
  openspecfun = callPackage ../development/libraries/science/math/openspecfun {};
  planarity = callPackage ../development/libraries/science/math/planarity { };
  fenics = callPackage ../development/libraries/science/math/fenics {
    inherit (python3Packages) numpy ply pytest python six sympy;
    pythonPackages = python3Packages;