forked from mirrors/nixpkgs
Merge pull request #190719 from firefly-cpp/fireflyalgorithm
python310Packages.fireflyalgorithm: init at 0.3.2
This commit is contained in:
commit
a4f3bae604
46
pkgs/development/python-modules/fireflyalgorithm/default.nix
Normal file
46
pkgs/development/python-modules/fireflyalgorithm/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3251,6 +3251,8 @@ in {
|
||||||
|
|
||||||
fire = callPackage ../development/python-modules/fire { };
|
fire = callPackage ../development/python-modules/fire { };
|
||||||
|
|
||||||
|
fireflyalgorithm = callPackage ../development/python-modules/fireflyalgorithm { };
|
||||||
|
|
||||||
firetv = callPackage ../development/python-modules/firetv { };
|
firetv = callPackage ../development/python-modules/firetv { };
|
||||||
|
|
||||||
first = callPackage ../development/python-modules/first { };
|
first = callPackage ../development/python-modules/first { };
|
||||||
|
|
Loading…
Reference in a new issue