Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
numpy,
pandas,
property-cached,
pytestCheckHook,
scipy,
setuptools,
setuptools-scm,
statsmodels,
}:
buildPythonPackage rec {
pname = "arch";
version = "7.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bashtage";
repo = "arch";
tag = "v${version}";
hash = "sha256-3H/6mdPg8rg+N1wecqLDzc7Ot3SnUVpOagns4PsTD/Q=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail 'PytestRemovedIn8Warning' 'PytestRemovedIn9Warning'
substituteInPlace pyproject.toml \
--replace-fail '"setuptools_scm[toml]>=8.0.3,<9",' '"setuptools_scm[toml]",'
'';
build-system = [
setuptools
setuptools-scm
cython
];
dependencies = [
numpy
pandas
property-cached
scipy
statsmodels
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Skip long-running/failing tests
"arch/tests/univariate/test_forecast.py"
"arch/tests/univariate/test_mean.py"
];
pythonImportsCheck = [ "arch" ];
meta = {
description = "Autoregressive Conditional Heteroskedasticity (ARCH) and other tools for financial econometrics";
homepage = "https://github.com/bashtage/arch";
changelog = "https://github.com/bashtage/arch/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jherland ];
};
}