blob: 8937f78a7a663ab9b5ee2dd18793846acb113367 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, python
}:
buildPythonPackage rec {
pname = "cma";
version = "3.0.3";
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
rev = "r${version}";
sha256 = "00vv7imdkv0bqcs4b8dg9nggxcl2fkcnhdd46n22bcmnwy8rjxv6";
};
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 ];
};
}
|