Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, cython 4, fetchPypi 5, matplotlib 6, numpy 7, pandas 8, patsy 9, pythonOlder 10, scipy 11, setuptools-scm 12}: 13 14buildPythonPackage rec { 15 pname = "statsmodels"; 16 version = "0.13.5"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-WTUmrK4cD9oOpsSEOfZ8OUMJTFQv52n4uQ/p5sbMSHE="; 24 }; 25 26 nativeBuildInputs = [ 27 cython 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 numpy 33 scipy 34 pandas 35 patsy 36 matplotlib 37 ]; 38 39 # Huge test suites with several test failures 40 doCheck = false; 41 42 pythonImportsCheck = [ 43 "statsmodels" 44 ]; 45 46 meta = with lib; { 47 description = "Statistical computations and models for use with SciPy"; 48 homepage = "https://www.github.com/statsmodels/statsmodels"; 49 changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ fridh ]; 52 }; 53}