2017-04-18 11:03:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-07 21:12:27 +01:00
|
|
|
, isPy27
|
2017-04-18 11:03:00 +01:00
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pandas
|
|
|
|
, patsy
|
|
|
|
, cython
|
|
|
|
, matplotlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "statsmodels";
|
2021-02-20 09:09:17 +00:00
|
|
|
version = "0.12.2";
|
2020-07-31 09:00:08 +01:00
|
|
|
disabled = isPy27;
|
2017-04-18 11:03:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:17 +00:00
|
|
|
sha256 = "8ad7a7ae7cdd929095684118e3b05836c0ccb08b6a01fe984159475d174a1b10";
|
2017-04-18 11:03:00 +01:00
|
|
|
};
|
|
|
|
|
2020-07-07 21:12:27 +01:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ numpy scipy pandas patsy matplotlib ];
|
2017-04-18 11:03:00 +01:00
|
|
|
|
2017-09-07 08:48:54 +01:00
|
|
|
# Huge test suites with several test failures
|
|
|
|
doCheck = false;
|
2020-07-07 21:12:27 +01:00
|
|
|
pythonImportsCheck = [ "statsmodels" ];
|
2017-09-07 08:48:54 +01:00
|
|
|
|
2017-04-18 11:03:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "Statistical computations and models for use with SciPy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.github.com/statsmodels/statsmodels";
|
2017-04-20 09:28:31 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-04-18 11:03:00 +01:00
|
|
|
};
|
2017-04-20 09:28:31 +01:00
|
|
|
}
|