Unverified Commit b762ea14 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.linearmodels: relax setuptools-scm (#446677)

parents 56fce361 aa07ce7c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ buildPythonPackage rec {
    hash = "sha256-oWVBsFSKnv/8AHYP5sxO6+u5+hsOw/uQlOetse5ue88=";
  };

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace-fail "setuptools_scm[toml]>=8.0.0,<9.0.0" "setuptools_scm[toml]"
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools_scm[toml]>=8,<9" "setuptools_scm[toml]"
  '';

  build-system = [
    setuptools
    setuptools-scm
@@ -49,6 +56,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "linearmodels" ];

  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/";