Unverified Commit abde03c6 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #280777 from TomaSajt/cmdstanpy

python3Packages.cmdstanpy: relax dependency, drop legacy builder
parents 9c0581d4 5416b088
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -2,22 +2,21 @@
, buildPythonPackage
, fetchFromGitHub
, substituteAll

, cmdstan

, pythonRelaxDepsHook
, setuptools
, pandas
, numpy
, tqdm
, stanio
, xarray

, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "cmdstanpy";
  version = "1.2.0";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "stan-dev";
@@ -38,6 +37,11 @@ buildPythonPackage rec {
    rm test/conftest.py
  '';

  nativeBuildInputs = [
    setuptools
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    pandas
    numpy
@@ -49,6 +53,8 @@ buildPythonPackage rec {
    all = [ xarray ];
  };

  pythonRelaxDeps = [ "stanio" ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';