2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, hypothesis
|
|
|
|
, numpy
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cmaes";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.10.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CyberAgentAILab";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-1mXulG/yqNwKQKDFGBh8uxIYOPSsm8+PNp++CSswc50=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook hypothesis ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cmaes" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for CMA evolution strategy";
|
|
|
|
homepage = "https://github.com/CyberAgentAILab/cmaes";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/CyberAgentAILab/cmaes/releases/tag/v${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|