evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cmaes / default.nix
blob6a0f96d469e511785aae2de58596608a614ace01
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   hypothesis,
8   numpy,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "cmaes";
14   version = "0.11.1";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "CyberAgentAILab";
21     repo = "cmaes";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-u2CgU9n8N9AMxfMBbDbnYzBMdl/IGOLTxOeh8RlnB/Y=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [ numpy ];
30   nativeCheckInputs = [
31     hypothesis
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "cmaes" ];
37   disabledTests = [
38     # Disable time-sensitive test
39     "test_cma_tell"
40   ];
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/v${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ bcdarwin ];
48   };