2018-08-10 22:43:58 +02:00
|
|
|
{ lib
|
2022-02-28 02:29:56 +01:00
|
|
|
, stdenv
|
|
|
|
, toPythonModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, boost
|
2018-08-10 22:43:58 +02:00
|
|
|
, eigen
|
|
|
|
, ipopt
|
2022-02-28 02:29:56 +01:00
|
|
|
, nlopt
|
2018-08-10 22:43:58 +02:00
|
|
|
, pagmo2
|
2022-02-28 02:29:56 +01:00
|
|
|
, python
|
2018-08-10 22:43:58 +02:00
|
|
|
, cloudpickle
|
|
|
|
, ipyparallel
|
|
|
|
, numba
|
2022-02-28 02:29:56 +01:00
|
|
|
, numpy
|
|
|
|
, pybind11
|
2018-08-10 22:43:58 +02:00
|
|
|
}:
|
|
|
|
|
2022-02-28 02:29:56 +01:00
|
|
|
toPythonModule (stdenv.mkDerivation rec {
|
2018-08-10 22:43:58 +02:00
|
|
|
pname = "pygmo";
|
2022-02-28 02:29:56 +01:00
|
|
|
version = "2.18.0";
|
2018-08-10 22:43:58 +02:00
|
|
|
|
2022-02-28 02:29:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "esa";
|
|
|
|
repo = "pygmo2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-he7gxRRJd6bBrD0Z0i+CQTr5JH4P3Im/beNGO+HfmNM=";
|
|
|
|
};
|
2018-08-10 22:43:58 +02:00
|
|
|
|
2022-02-28 02:29:56 +01:00
|
|
|
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;
|
2018-08-10 22:43:58 +02:00
|
|
|
|
2018-12-02 17:21:50 +01:00
|
|
|
meta = with lib; {
|
2018-08-10 22:43:58 +02:00
|
|
|
description = "Parallel optimisation for Python";
|
2022-02-28 02:29:56 +01:00
|
|
|
homepage = "https://github.com/esa/pygmo2";
|
2018-12-02 17:21:50 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
2018-08-10 22:43:58 +02:00
|
|
|
};
|
2022-02-28 02:29:56 +01:00
|
|
|
})
|