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