From 9e01b88f90de85046345e267547df4d94320374c Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 12 Jan 2025 19:35:34 +0800 Subject: [PATCH] python313Packages.fireflyalgorithm: 0.4.5 -> 0.4.6 --- .../fireflyalgorithm/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/fireflyalgorithm/default.nix b/pkgs/development/python-modules/fireflyalgorithm/default.nix index a8ea25eec58c..934354dfbb18 100644 --- a/pkgs/development/python-modules/fireflyalgorithm/default.nix +++ b/pkgs/development/python-modules/fireflyalgorithm/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "fireflyalgorithm"; - version = "0.4.5"; + version = "0.4.6"; pyproject = true; disabled = pythonOlder "3.9"; @@ -19,23 +19,28 @@ buildPythonPackage rec { owner = "firefly-cpp"; repo = "FireflyAlgorithm"; tag = version; - hash = "sha256-dJnjeJN9NI8G/haYeOiMtAl56cExqMk0iTWpaybl4nE="; + hash = "sha256-NMmwjKtIk8KR0YXXSXkJhiQsbjMusaLnstUWx0izCNA="; }; - nativeBuildInputs = [ poetry-core ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'numpy = "^1.26.1"' "" + ''; - propagatedBuildInputs = [ numpy ]; + build-system = [ poetry-core ]; + + dependencies = [ numpy ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "fireflyalgorithm" ]; - meta = with lib; { + meta = { description = "Implementation of the stochastic nature-inspired algorithm for optimization"; mainProgram = "firefly-algorithm"; homepage = "https://github.com/firefly-cpp/FireflyAlgorithm"; changelog = "https://github.com/firefly-cpp/FireflyAlgorithm/blob/${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ firefly-cpp ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ firefly-cpp ]; }; }