mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
Merge pull request #215069 from bcdarwin/python3-cmaes
python310Packages.cmaes: init at 0.9.1
This commit is contained in:
37
pkgs/development/python-modules/cmaes/default.nix
Normal file
37
pkgs/development/python-modules/cmaes/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1865,6 +1865,8 @@ self: super: with self; {
|
||||
|
||||
cma = callPackage ../development/python-modules/cma { };
|
||||
|
||||
cmaes = callPackage ../development/python-modules/cmaes { };
|
||||
|
||||
cmarkgfm = callPackage ../development/python-modules/cmarkgfm { };
|
||||
|
||||
cmd2 = callPackage ../development/python-modules/cmd2 { };
|
||||
|
||||
Reference in New Issue
Block a user