Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ 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="; };
# tries to execute linearmodels/_build/git_version.py at build time # which would require keeping the .git tree env.SETUPTOOLS_SCM_PRETEND_VERSION = finalAttrs.version;
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools_scm>=9.2.0,<10" "setuptools_scm" '';
build-system = [ cython meson-python numpy setuptools-scm ];
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 ]; };})