Merge pull request #280777 from TomaSajt/cmdstanpy

python3Packages.cmdstanpy: relax dependency, drop legacy builder
This commit is contained in:
OTABI Tomoya 2024-01-14 17:18:40 +09:00 committed by GitHub
commit abde03c6b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
'';