summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fireflyalgorithm
diff options
context:
space:
mode:
authorfirefly-cpp <iztok@iztok-jr-fister.eu>2022-09-10 22:41:14 +0200
committerfirefly-cpp <iztok@iztok-jr-fister.eu>2022-09-11 12:00:31 +0200
commit3096877d3810998ea049f5fe0deeded2baecb169 (patch)
tree5a697000afb02c1e5946bd3090e56ebec1889d52 /pkgs/development/python-modules/fireflyalgorithm
parent79fce52435c6490b463be0cf30f8f3877b01cb76 (diff)
python310Packages.fireflyalgorithm: init at 0.3.2
Diffstat (limited to 'pkgs/development/python-modules/fireflyalgorithm')
-rw-r--r--pkgs/development/python-modules/fireflyalgorithm/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fireflyalgorithm/default.nix b/pkgs/development/python-modules/fireflyalgorithm/default.nix
new file mode 100644
index 000000000000..b0343f2d870a
--- /dev/null
+++ b/pkgs/development/python-modules/fireflyalgorithm/default.nix
@@ -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 ];
+ };
+}