depot/third_party/nixpkgs/pkgs/development/python-modules/pygmo/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

63 lines
964 B
Nix

{ lib
, stdenv
, toPythonModule
, fetchFromGitHub
, cmake
, boost
, eigen
, ipopt
, nlopt
, pagmo2
, python
, cloudpickle
, ipyparallel
, numba
, numpy
, pybind11
}:
toPythonModule (stdenv.mkDerivation rec {
pname = "pygmo";
version = "2.19.5";
src = fetchFromGitHub {
owner = "esa";
repo = "pygmo2";
rev = "refs/tags/v${version}";
hash = "sha256-szQyw5kYfrQEeXRQzjQ0hzULuzTfmGod6ZxG9PDRj5M=";
};
cmakeFlags = [
"-DPYGMO_INSTALL_PATH=${placeholder "out"}/lib/${python.libPrefix}/site-packages"
];
nativeBuildInputs = [
cmake
];
propagatedBuildInputs = [
cloudpickle
ipyparallel
numba
numpy
python
];
buildInputs = [
boost
eigen
ipopt
nlopt
pagmo2
pybind11
];
doCheck = true;
meta = with lib; {
description = "Parallel optimisation for Python";
homepage = "https://github.com/esa/pygmo2";
license = licenses.gpl3Plus;
maintainers = [ ];
};
})