2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-01-11 07:51:40 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2023-01-11 07:51:40 +00:00
|
|
|
, matplotlib
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, patsy
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "statsmodels";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.14.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-aHXH1onpZtlI8V64FqtWFvSShwaxgM9HD9WQerb2R6Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
pandas
|
|
|
|
patsy
|
|
|
|
matplotlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Huge test suites with several test failures
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"statsmodels"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Statistical computations and models for use with SciPy";
|
|
|
|
homepage = "https://www.github.com/statsmodels/statsmodels";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|