1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

pythonPackages.cma: init at 2.7.0

This commit is contained in:
Chris Ostrouchov 2019-12-31 11:27:10 -05:00 committed by Frederik Rietdijk
parent 310afc9e93
commit 4e0ebea84a
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, python
}:
buildPythonPackage rec {
pname = "cma";
version = "2.7.0";
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
rev = "r${version}";
sha256 = "0c26969pcqj047axksfffd9pj77n16k4r9h6pyid9q3ah5zk0xg3";
};
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 ];
};
}

View file

@ -4355,6 +4355,8 @@ in {
cachetools = callPackage ../development/python-modules/cachetools {};
cma = callPackage ../development/python-modules/cma { };
cmd2 = callPackage ../development/python-modules/cmd2 {};
warlock = callPackage ../development/python-modules/warlock { };