Skip to content

Commit

Permalink
python3Packages.cgal-swig-bindings: init at unstable-2022-03-28
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Oct 25, 2022
1 parent b2399a8 commit 4629688
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pkgs/development/python-modules/cgal-swig-bindings/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, boost
, cgal_5
, cmake
, eigen
, gmp
, mpfr
, numpy
, pytestCheckHook
, swig
, zlib
}:

buildPythonPackage rec {
pname = "cgal-swig-bindings";
version = "unstable-2022-03-28";
format = "setuptools";

src = fetchFromGitHub {
owner = "CGAL";
repo = "cgal-swig-bindings";
rev = "422c3e2a3230e478dd609e1dc44d6529e2bc963d";
hash = "sha256-OBPm/VCeqGskmpkgaYWHuGhaDycOOTyWDhPt1Bi8Zns=";
};

nativeBuildInputs = [
cmake
numpy
swig
];
buildInputs = [
boost
cgal_5
eigen
gmp
mpfr
zlib
];

dontUseCmakeConfigure = true;

pythonImportsCheck = [
"CGAL.CGAL_Kernel"
"CGAL.CGAL_Triangulation_3"
];
checkInputs = [
pytestCheckHook
];

meta = with lib; {
description = "CGAL bindings using SWIG";
homepage = "https://github.com/CGAL/cgal-swig-bindings";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ veprbl ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,8 @@ in {

cftime = callPackage ../development/python-modules/cftime { };

cgal-swig-bindings = callPackage ../development/python-modules/cgal-swig-bindings { };

cgen = callPackage ../development/python-modules/cgen { };

cgroup-utils = callPackage ../development/python-modules/cgroup-utils { };
Expand Down

0 comments on commit 4629688

Please sign in to comment.