1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 numpy, 7 packaging, 8 pandas, 9 patsy, 10 pythonOlder, 11 scipy, 12 setuptools, 13 setuptools-scm, 14 stdenv, 15}: 16 17buildPythonPackage rec { 18 pname = "statsmodels"; 19 version = "0.14.4"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.9"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-XWng85Bg3HLAZ/m7boAzttzNsLrhAddqfvC8yU6Ji2c="; 27 }; 28 29 build-system = [ 30 cython 31 numpy 32 scipy 33 setuptools 34 setuptools-scm 35 ]; 36 37 env = lib.optionalAttrs stdenv.cc.isClang { 38 NIX_CFLAGS_COMPILE = toString [ 39 "-Wno-error=implicit-function-declaration" 40 "-Wno-error=int-conversion" 41 ]; 42 }; 43 44 dependencies = [ 45 numpy 46 packaging 47 pandas 48 patsy 49 scipy 50 ]; 51 52 # Huge test suites with several test failures 53 doCheck = false; 54 55 pythonImportsCheck = [ "statsmodels" ]; 56 57 meta = with lib; { 58 description = "Statistical computations and models for use with SciPy"; 59 homepage = "https://www.github.com/statsmodels/statsmodels"; 60 changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}"; 61 license = licenses.bsd3; 62 }; 63}