94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
, seaborn
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simpful";
|
|
version = "2.11.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aresio";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-1CU/Iz83CKRx7dsOTGfdJm98TUfc2kxCHKIEUXP36HQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
requests
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
plotting = [
|
|
matplotlib
|
|
seaborn
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [
|
|
"simpful"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for fuzzy logic";
|
|
homepage = "https://github.com/aresio/simpful";
|
|
changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
|
|
license = with licenses; [ lgpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|