depot/third_party/nixpkgs/pkgs/development/python-modules/cmaes/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

54 lines
1,013 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hypothesis
, numpy
, setuptools
}:
buildPythonPackage rec {
pname = "cmaes";
version = "0.10.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CyberAgentAILab";
repo = "cmaes";
rev = "refs/tags/v${version}";
hash = "sha256-1mXulG/yqNwKQKDFGBh8uxIYOPSsm8+PNp++CSswc50=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [
"cmaes"
];
disabledTests = [
# Disable time-sensitive test
"test_cma_tell"
];
meta = with lib; {
description = "Python library for CMA evolution strategy";
homepage = "https://github.com/CyberAgentAILab/cmaes";
changelog = "https://github.com/CyberAgentAILab/cmaes/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}