depot/third_party/nixpkgs/pkgs/development/python-modules/cma/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

33 lines
680 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, python
}:
buildPythonPackage rec {
pname = "cma";
version = "3.1.0";
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
rev = "r${version}";
sha256 = "1bal4kljxrdm6x5ppyi6i109714h0czdxfsna906dlfplrmq52bf";
};
propagatedBuildInputs = [
numpy
];
checkPhase = ''
${python.executable} -m cma.test
'';
meta = with lib; {
description = "CMA-ES, Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization in Python";
homepage = "https://github.com/CMA-ES/pycma";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}