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.10.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "CyberAgentAILab"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-1mXulG/yqNwKQKDFGBh8uxIYOPSsm8+PNp++CSswc50="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 propagatedBuildInputs = [ numpy ]; 27 28 nativeCheckInputs = [ pytestCheckHook hypothesis ]; 29 30 pythonImportsCheck = [ "cmaes" ]; 31 32 meta = with lib; { 33 description = "Python library for CMA evolution strategy"; 34 homepage = "https://github.com/CyberAgentAILab/cmaes"; 35 changelog = "https://github.com/CyberAgentAILab/cmaes/releases/tag/v${version}"; 36 license = licenses.mit; 37 maintainers = [ maintainers.bcdarwin ]; 38 }; 39}