Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 994 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 hypothesis, 8 numpy, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "cmaes"; 14 version = "0.12.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "CyberAgentAILab"; 21 repo = "cmaes"; 22 tag = "v${version}"; 23 hash = "sha256-Ev3Nes0iJIhndWfVzDVLpoV4TIFaHMOEUgPPdlyU0+s="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 propagatedBuildInputs = [ numpy ]; 29 30 nativeCheckInputs = [ 31 hypothesis 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "cmaes" ]; 36 37 disabledTests = [ 38 # Disable time-sensitive test 39 "test_cma_tell" 40 ]; 41 42 meta = with lib; { 43 description = "Python library for CMA evolution strategy"; 44 homepage = "https://github.com/CyberAgentAILab/cmaes"; 45 changelog = "https://github.com/CyberAgentAILab/cmaes/releases/tag/${src.tag}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ bcdarwin ]; 48 }; 49}