Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 84 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, buildPythonPackage, fetchFromGitHub,
# build-system cython, meson-python, numpy, setuptools-scm,
# dependencies formulaic, mypy-extensions, pandas, pyhdfe, scipy, statsmodels,
# tests pytestCheckHook, xarray,}:
buildPythonPackage (finalAttrs: { pname = "linearmodels"; version = "7.0"; pyproject = true;
src = fetchFromGitHub { owner = "bashtage"; repo = "linearmodels"; tag = "v${finalAttrs.version}"; hash = "sha256-/unFszNGaEPsoXDtaS3tsLnsX4A6e7Y88O8pDrf4nKc="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools_scm>=9.2.0,<10" "setuptools_scm" '';
build-system = [ cython meson-python numpy setuptools-scm ];
env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version;
dependencies = [ formulaic mypy-extensions numpy pandas pyhdfe scipy statsmodels ];
pythonImportsCheck = [ "linearmodels" ];
nativeCheckInputs = [ pytestCheckHook xarray ];
preCheck = '' rm linearmodels/__init__.py '';
disabledTestPaths = [ # Skip long-running tests "linearmodels/tests/panel/test_panel_ols.py" ];
meta = { description = "Models for panel data, system regression, instrumental variables and asset pricing"; homepage = "https://bashtage.github.io/linearmodels/"; changelog = "https://github.com/bashtage/linearmodels/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.ncsa; maintainers = with lib.maintainers; [ jherland ]; };})