1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, nose
6, numpy
7, scipy
8, pandas
9, patsy
10, cython
11, matplotlib
12}:
13
14buildPythonPackage rec {
15 pname = "statsmodels";
16 version = "0.13.2";
17 disabled = isPy27;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-d9wpLJk5wDakdvF3D50Il2sFQ32qIpko2nMjEUfN59Q=";
22 };
23
24 nativeBuildInputs = [ cython ];
25 checkInputs = [ nose ];
26 propagatedBuildInputs = [ numpy scipy pandas patsy matplotlib ];
27
28 # Huge test suites with several test failures
29 doCheck = false;
30 pythonImportsCheck = [ "statsmodels" ];
31
32 meta = {
33 description = "Statistical computations and models for use with SciPy";
34 homepage = "https://www.github.com/statsmodels/statsmodels";
35 license = lib.licenses.bsd3;
36 maintainers = with lib.maintainers; [ fridh ];
37 };
38}