Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, hypothesis 7, numpy 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "cmaes"; 13 version = "0.9.1"; 14 disabled = pythonOlder "3.7"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "CyberAgentAILab"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-dd5vLT4Q0cI5ts0WgBpjPtOA81exGNjWSNHEiPggYbg="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 propagatedBuildInputs = [ numpy ]; 26 27 nativeCheckInputs = [ pytestCheckHook hypothesis ]; 28 29 pythonImportsCheck = [ "cmaes" ]; 30 31 meta = with lib; { 32 description = "Python library for CMA evolution strategy"; 33 homepage = "https://github.com/CyberAgentAILab/cmaes"; 34 license = licenses.mit; 35 maintainers = [ maintainers.bcdarwin ]; 36 }; 37}