mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
Merge pull request #280777 from TomaSajt/cmdstanpy
python3Packages.cmdstanpy: relax dependency, drop legacy builder
This commit is contained in:
commit
abde03c6b3
@ -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)
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user