depot/third_party/nixpkgs/pkgs/development/python-modules/fireflyalgorithm/default.nix

48 lines
979 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "FireflyAlgorithm";
version = "0.3.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-rJOcPQU/oz/qP787OpZsfbjSsT2dWvhJLTs4N5TriWc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"fireflyalgorithm"
];
meta = with lib; {
description = "An implementation of the stochastic nature-inspired algorithm for optimization";
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 ];
};
}