2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
toPythonModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
boost,
|
|
|
|
eigen,
|
|
|
|
ipopt,
|
|
|
|
nlopt,
|
|
|
|
pagmo2,
|
|
|
|
python,
|
|
|
|
cloudpickle,
|
|
|
|
ipyparallel,
|
|
|
|
numba,
|
|
|
|
numpy,
|
|
|
|
pybind11,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
toPythonModule (
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pygmo";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.19.7";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "esa";
|
|
|
|
repo = "pygmo2";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-279KNnP11f5ob2senIVmbnlmhRp2p3RoZLsQRE6yJ5Q=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DPYGMO_INSTALL_PATH=${placeholder "out"}/${python.sitePackages}" ];
|
|
|
|
|
|
|
|
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 = [ ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|