1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 setuptools-scm, 8 pytestCheckHook, 9 numpy, 10 pandas, 11 scipy, 12}: 13 14buildPythonPackage rec { 15 pname = "formulae"; 16 version = "0.5.3"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "bambinos"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-A0CI0bpoRYFAcPiNAf5haQu9BEqmBgxF7HfIl4qcML0="; 26 }; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 propagatedBuildInputs = [ 34 numpy 35 pandas 36 scipy 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 # use assertions of form `assert pytest.approx(...)`, which is now disallowed: 41 disabledTests = [ 42 "test_basic" 43 "test_degree" 44 ]; 45 pythonImportsCheck = [ 46 "formulae" 47 "formulae.matrices" 48 ]; 49 50 meta = with lib; { 51 homepage = "https://bambinos.github.io/formulae"; 52 description = "Formulas for mixed-effects models in Python"; 53 changelog = "https://github.com/bambinos/formulae/releases/tag/${version}"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ bcdarwin ]; 56 }; 57}