nixpkgs/pkgs/development/python-modules/pygmo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
977 B
Nix
Raw Normal View History

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