Files
nixpkgs/pkgs/development/python-modules/cma/default.nix
T
Martin Weinelt 1dc13fba1d python3Packages.cma: 4.0.0 -> 4.3.0
https://github.com/CMA-ES/pycma/releases/tag/rr4.3.0

This commit was automatically generated using update-python-libraries.
2025-08-09 18:58:51 +02:00

44 lines
1023 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
python,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "cma";
version = "4.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
tag = "r${version}";
hash = "sha256-2uCn5CZma9RLK8zaaPhiQCqnK+2dWgLNr5+Ck2cV6vI=";
};
build-system = [ setuptools ];
dependencies = [ numpy ];
checkPhase = ''
# At least one doctest fails, thus only limited amount of files is tested
${python.executable} -m cma.test interfaces.py purecma.py logger.py optimization_tools.py transformations.py
'';
pythonImportsCheck = [ "cma" ];
meta = with lib; {
description = "Library for Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization";
homepage = "https://github.com/CMA-ES/pycma";
changelog = "https://github.com/CMA-ES/pycma/releases/tag/r${src.tag}";
license = licenses.bsd3;
maintainers = [ ];
};
}