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