mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Merge pull request #786 from trepetti/exceptiongroup-flit_scm
overrides: build systems and fixes
This commit is contained in:
commit
15f6492ead
2 changed files with 67 additions and 2 deletions
|
@ -2778,6 +2778,9 @@
|
||||||
"cmdline": [
|
"cmdline": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"cmdstanpy": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"cmigemo": [
|
"cmigemo": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
@ -4566,6 +4569,7 @@
|
||||||
],
|
],
|
||||||
"exceptiongroup": [
|
"exceptiongroup": [
|
||||||
"flit-core",
|
"flit-core",
|
||||||
|
"flit-scm",
|
||||||
"flitBuildHook",
|
"flitBuildHook",
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
@ -7255,7 +7259,14 @@
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
"jupyter-server": [
|
"jupyter-server": [
|
||||||
"setuptools"
|
{
|
||||||
|
"buildSystem": "setuptools",
|
||||||
|
"until": "1.21.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buildSystem": "jupyter-packaging",
|
||||||
|
"from": "1.21.0"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"jupyter-server-mathjax": [
|
"jupyter-server-mathjax": [
|
||||||
"jupyter-packaging",
|
"jupyter-packaging",
|
||||||
|
@ -7904,6 +7915,9 @@
|
||||||
"luhn": [
|
"luhn": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"lunarcalendar": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"lupa": [
|
"lupa": [
|
||||||
"cython",
|
"cython",
|
||||||
"setuptools"
|
"setuptools"
|
||||||
|
@ -9119,7 +9133,14 @@
|
||||||
],
|
],
|
||||||
"notebook-shim": [
|
"notebook-shim": [
|
||||||
"jupyter-packaging",
|
"jupyter-packaging",
|
||||||
"setuptools"
|
{
|
||||||
|
"buildSystem": "setuptools",
|
||||||
|
"until": "0.2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buildSystem": "hatchling",
|
||||||
|
"from": "0.2.0"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"notedown": [
|
"notedown": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
|
@ -10304,6 +10325,9 @@
|
||||||
"plyvel": [
|
"plyvel": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"pmdarima": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"pmsensor": [
|
"pmsensor": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
@ -14979,6 +15003,9 @@
|
||||||
"shamir-mnemonic": [
|
"shamir-mnemonic": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"shap": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"shapely": [
|
"shapely": [
|
||||||
"cython",
|
"cython",
|
||||||
"setuptools"
|
"setuptools"
|
||||||
|
@ -15743,6 +15770,9 @@
|
||||||
"statsd": [
|
"statsd": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"statsforecast": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"statsmodels": [
|
"statsmodels": [
|
||||||
"cython",
|
"cython",
|
||||||
"setuptools"
|
"setuptools"
|
||||||
|
@ -16040,6 +16070,9 @@
|
||||||
"taxi": [
|
"taxi": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
"tbats": [
|
||||||
|
"setuptools"
|
||||||
|
],
|
||||||
"tblib": [
|
"tblib": [
|
||||||
"setuptools"
|
"setuptools"
|
||||||
],
|
],
|
||||||
|
|
|
@ -309,6 +309,18 @@ 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}";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
contourpy = super.contourpy.overridePythonAttrs (
|
contourpy = super.contourpy.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pybind11 ];
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pybind11 ];
|
||||||
|
@ -420,6 +432,10 @@ lib.composeManyExtensions [
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
darts = super.darts.override {
|
||||||
|
preferWheel = true;
|
||||||
|
};
|
||||||
|
|
||||||
datadog-lambda = super.datadog-lambda.overridePythonAttrs (old: {
|
datadog-lambda = super.datadog-lambda.overridePythonAttrs (old: {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py --replace "setuptools==" "setuptools>="
|
substituteInPlace setup.py --replace "setuptools==" "setuptools>="
|
||||||
|
@ -1508,6 +1524,12 @@ lib.composeManyExtensions [
|
||||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ];
|
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 (
|
psycopg2 = super.psycopg2.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
buildInputs = (old.buildInputs or [ ])
|
buildInputs = (old.buildInputs or [ ])
|
||||||
|
@ -1782,6 +1804,16 @@ lib.composeManyExtensions [
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pytorch-lightning = super.pytorch-lightning.override {
|
||||||
|
unpackPhase = ''
|
||||||
|
# $src remains a gzipped tarball otherwise.
|
||||||
|
mkdir -p tmp
|
||||||
|
tar xvf $src --directory=tmp
|
||||||
|
mv tmp/pytorch-lightning*/* .
|
||||||
|
rm -rf tmp
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
pyqt5 =
|
pyqt5 =
|
||||||
let
|
let
|
||||||
qt5 = selectQt5 super.pyqt5.version;
|
qt5 = selectQt5 super.pyqt5.version;
|
||||||
|
|
Loading…
Add table
Reference in a new issue