depot/third_party/nixpkgs/pkgs/development/python-modules/cma/default.nix
Default email 9c6d255489 Project import generated by Copybara.
GitOrigin-RevId: 8133b9cb5f7c00d4fe31c8c2c4b525bc2650bfc0
2020-10-16 20:44:37 +00:00

33 lines
680 B
Nix

{ 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 ];
};
}