1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 miniful,
6 numpy,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "fst-pso";
13 version = "1.9.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "fst_pso";
20 inherit version;
21 hash = "sha256-znf1A/Vcz5ELFGFrpDzdj8O3XEDxpu+mCCb35GfWqN8=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 miniful
28 numpy
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "fstpso" ];
35
36 meta = with lib; {
37 description = "Fuzzy Self-Tuning PSO global optimization library";
38 homepage = "https://github.com/aresio/fst-pso";
39 changelog = "https://github.com/aresio/fst-pso/releases/tag/${version}";
40 license = licenses.lgpl3Only;
41 maintainers = with maintainers; [ fab ];
42 };
43}