Merge pull request #190719 from firefly-cpp/fireflyalgorithm

python310Packages.fireflyalgorithm: init at 0.3.2
This commit is contained in:
Robert Scott 2022-09-11 13:36:19 +01:00 committed by GitHub
commit a4f3bae604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "FireflyAlgorithm";
version = "0.3.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = pname;
rev = version;
sha256 = "sha256-IlOIoP2aANE8y3+Qtb/H6w/+REnPWiUUQGRiAfxOpcM=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
numpy
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"fireflyalgorithm"
];
meta = with lib; {
description = "An implementation of the stochastic nature-inspired algorithm for optimization";
homepage = "https://github.com/firefly-cpp/FireflyAlgorithm";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
}

View File

@ -3251,6 +3251,8 @@ in {
fire = callPackage ../development/python-modules/fire { };
fireflyalgorithm = callPackage ../development/python-modules/fireflyalgorithm { };
firetv = callPackage ../development/python-modules/firetv { };
first = callPackage ../development/python-modules/first { };