blob: 5f1121c8e914bd16da265580c6550e2932ede90a (
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
34
35
36
37
38
39
40
41
42
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "cma";
version = "3.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
rev = "refs/tags/r${version}";
hash = "sha256-STF7jtLqI2KiWvvI9/reRjP1XyW8l4/qy9uAPpE9mTs=";
};
propagatedBuildInputs = [
numpy
];
checkPhase = ''
# At least one doctest fails, thus only limited amount of files is tested
${python.executable} -m cma.test interfaces.py purecma.py logger.py optimization_tools.py transformations.py
'';
pythonImportsCheck = [
"cma"
];
meta = with lib; {
description = "Library for Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization";
homepage = "https://github.com/CMA-ES/pycma";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
}
|