Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, matplotlib 5, numpy 6, pytestCheckHook 7, pythonOlder 8, scipy 9, seaborn 10, requests 11}: 12 13buildPythonPackage rec { 14 pname = "simpful"; 15 version = "2.11.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "aresio"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-1CU/Iz83CKRx7dsOTGfdJm98TUfc2kxCHKIEUXP36HQ="; 25 }; 26 27 propagatedBuildInputs = [ 28 numpy 29 scipy 30 requests 31 ]; 32 33 passthru.optional-dependencies = { 34 plotting = [ 35 matplotlib 36 seaborn 37 ]; 38 }; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 43 44 pythonImportsCheck = [ 45 "simpful" 46 ]; 47 48 meta = with lib; { 49 description = "Library for fuzzy logic"; 50 homepage = "https://github.com/aresio/simpful"; 51 changelog = "https://github.com/aresio/simpful/releases/tag/${version}"; 52 license = with licenses; [ lgpl3Only ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}