fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
matplotlib,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
scipy,
|
|
seaborn,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simpful";
|
|
version = "2.12.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aresio";
|
|
repo = "simpful";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-NtTw7sF1WfVebUk1wHrM8FHAe3/FXDcMApPkDbw0WXo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
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 ];
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|