Files
nixpkgs/pkgs/development/python-modules/fst-pso/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
822 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
miniful,
numpy,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "fst-pso";
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "fst_pso";
inherit version;
hash = "sha256-znf1A/Vcz5ELFGFrpDzdj8O3XEDxpu+mCCb35GfWqN8=";
};
build-system = [ setuptools ];
dependencies = [
miniful
numpy
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "fstpso" ];
meta = {
description = "Fuzzy Self-Tuning PSO global optimization library";
homepage = "https://github.com/aresio/fst-pso";
changelog = "https://github.com/aresio/fst-pso/releases/tag/${version}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}