biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / fireflyalgorithm / default.nix
blob96c7e0674ba686360de56f0e3b54b34ecaa368a2
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "fireflyalgorithm";
13   version = "0.4.5";
14   pyproject = true;
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=";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [ numpy ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "fireflyalgorithm" ];
33   meta = with lib; {
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 ];
40   };