depot/third_party/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
numpy,
packaging,
pandas,
patsy,
pythonOlder,
scipy,
setuptools,
setuptools-scm,
stdenv,
}:
buildPythonPackage rec {
pname = "statsmodels";
version = "0.14.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-iQVQFHrTqBzaJPC6GlxAIa3BYBCAvQDhka581v7s1q0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0rc1,<3" "numpy"
'';
build-system = [
cython
numpy
scipy
setuptools
setuptools-scm
];
dependencies = [
numpy
packaging
pandas
patsy
scipy
];
# Huge test suites with several test failures
doCheck = false;
pythonImportsCheck = [ "statsmodels" ];
meta = with lib; {
description = "Statistical computations and models for use with SciPy";
homepage = "https://www.github.com/statsmodels/statsmodels";
changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}";
license = licenses.bsd3;
# Fails at build time
broken = stdenv.isDarwin;
};
}