mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
overrides: fix cmdstanpy path
This commit is contained in:
parent
8f70220254
commit
0b059b6712
1 changed files with 12 additions and 0 deletions
|
@ -312,6 +312,12 @@ lib.composeManyExtensions [
|
|||
cmdstanpy = super.cmdstanpy.overridePythonAttrs (
|
||||
old: {
|
||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ pkgs.cmdstan ];
|
||||
patchPhase = ''
|
||||
substituteInPlace cmdstanpy/model.py \
|
||||
--replace 'cmd = [make]' \
|
||||
'cmd = ["${pkgs.cmdstan}/bin/stan"]'
|
||||
'';
|
||||
CMDSTAN="${pkgs.cmdstan}";
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -1514,6 +1520,12 @@ lib.composeManyExtensions [
|
|||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ];
|
||||
});
|
||||
|
||||
prophet = super.prophet.overridePythonAttrs (old: {
|
||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ pkgs.cmdstan self.cmdstanpy ];
|
||||
PROPHET_REPACKAGE_CMDSTAN = "false";
|
||||
CMDSTAN="${pkgs.cmdstan}";
|
||||
});
|
||||
|
||||
psycopg2 = super.psycopg2.overridePythonAttrs (
|
||||
old: {
|
||||
buildInputs = (old.buildInputs or [ ])
|
||||
|
|
Loading…
Add table
Reference in a new issue