nixpkgs/pkgs/development/python-modules/cmaes/default.nix
2023-02-08 21:08:58 -05:00

38 lines
809 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hypothesis
, numpy
, setuptools
}:
buildPythonPackage rec {
pname = "cmaes";
version = "0.9.1";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "CyberAgentAILab";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dd5vLT4Q0cI5ts0WgBpjPtOA81exGNjWSNHEiPggYbg=";
};
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";
license = licenses.mit;
maintainers = [ maintainers.bcdarwin ];
};
}