{ lib , buildPythonPackage , fetchFromGitHub , numpy , python }: buildPythonPackage rec { pname = "cma"; version = "3.2.2"; src = fetchFromGitHub { owner = "CMA-ES"; repo = "pycma"; rev = "refs/tags/r${version}"; sha256 = "sha256-STF7jtLqI2KiWvvI9/reRjP1XyW8l4/qy9uAPpE9mTs="; }; 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 ]; }; }