Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, numpy, poetry-core, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "fireflyalgorithm"; version = "0.4.6"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "firefly-cpp"; repo = "FireflyAlgorithm"; tag = version; hash = "sha256-NMmwjKtIk8KR0YXXSXkJhiQsbjMusaLnstUWx0izCNA="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'numpy = "^1.26.1"' "" '';
build-system = [ poetry-core ];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "fireflyalgorithm" ];
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 = lib.licenses.mit; maintainers = with lib.maintainers; [ firefly-cpp ]; };}