3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/cma/default.nix

34 lines
679 B
Nix
Raw Normal View History

2019-12-31 16:27:10 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, python
}:
buildPythonPackage rec {
pname = "cma";
2022-03-02 21:41:54 +00:00
version = "3.2.1";
2019-12-31 16:27:10 +00:00
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
rev = "r${version}";
2022-03-02 21:41:54 +00:00
sha256 = "sha256-wLUD8HMJusUeCwwp37D/W7yJuJQcDfRwVGVKwBS6sR8=";
2019-12-31 16:27:10 +00:00
};
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";
2019-12-31 16:27:10 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}