11 buildPythonPackage rec {
12 pname = "fireflyalgorithm";
16 disabled = pythonOlder "3.9";
18 src = fetchFromGitHub {
19 owner = "firefly-cpp";
20 repo = "FireflyAlgorithm";
21 rev = "refs/tags/${version}";
22 hash = "sha256-dJnjeJN9NI8G/haYeOiMtAl56cExqMk0iTWpaybl4nE=";
25 nativeBuildInputs = [ poetry-core ];
27 propagatedBuildInputs = [ numpy ];
29 nativeCheckInputs = [ pytestCheckHook ];
31 pythonImportsCheck = [ "fireflyalgorithm" ];
34 description = "Implementation of the stochastic nature-inspired algorithm for optimization";
35 mainProgram = "firefly-algorithm";
36 homepage = "https://github.com/firefly-cpp/FireflyAlgorithm";
37 changelog = "https://github.com/firefly-cpp/FireflyAlgorithm/blob/${version}/CHANGELOG.md";
38 license = licenses.mit;
39 maintainers = with maintainers; [ firefly-cpp ];