1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "cma";
10 version = "3.0.3";
11
12 src = fetchFromGitHub {
13 owner = "CMA-ES";
14 repo = "pycma";
15 rev = "r${version}";
16 sha256 = "00vv7imdkv0bqcs4b8dg9nggxcl2fkcnhdd46n22bcmnwy8rjxv6";
17 };
18
19 propagatedBuildInputs = [
20 numpy
21 ];
22
23 checkPhase = ''
24 ${python.executable} -m cma.test
25 '';
26
27 meta = with lib; {
28 broken = true;
29 description = "CMA-ES, Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization in Python";
30 homepage = "https://github.com/CMA-ES/pycma";
31 license = licenses.bsd3;
32 maintainers = [ maintainers.costrouc ];
33 };
34}