Merge pull request #275438 from GaetanLepage/rlax
python311Packages.rlax: fix build
This commit is contained in:
commit
c033d82e83
3 changed files with 78 additions and 46 deletions
|
@ -12,16 +12,16 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "mizani";
|
||||
version = "0.10.0";
|
||||
format = "pyproject";
|
||||
version = "0.9.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "has2k1";
|
||||
repo = pname;
|
||||
repo = "mizani";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-JrE12dU0Es4VwUZLcbB8mabifnpxZ7Qt68WJ22HvPm4=";
|
||||
hash = "sha256-gZwM8/9ipcA73m1sPCz9oxD7cndli+qX9+gLILdbq1A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -1,30 +1,31 @@
|
|||
{ lib
|
||||
, adjusttext
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, geopandas
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, matplotlib
|
||||
, mizani
|
||||
, pandas
|
||||
, patsy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, scikit-misc
|
||||
, scipy
|
||||
, setuptools-scm
|
||||
, statsmodels
|
||||
, geopandas
|
||||
, pytestCheckHook
|
||||
, scikit-misc
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "plotnine";
|
||||
version = "0.12.3";
|
||||
format = "pyproject";
|
||||
version = "0.12.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-o43LNgf8ADweWa4MnVNdrngXZQ0cvC5W5W5bPeiN/pk=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "has2k1";
|
||||
repo = "plotnine";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-bm7xMCFDFimINlUePqLYw5bZtI5B151QOtltajgSm2U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -46,7 +47,6 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
adjusttext
|
||||
geopandas
|
||||
pytestCheckHook
|
||||
scikit-misc
|
||||
|
@ -61,20 +61,38 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Assertion Errors
|
||||
"tests/test_theme.py"
|
||||
"tests/test_scale_internals.py"
|
||||
"tests/test_scale_labelling.py"
|
||||
"tests/test_position.py"
|
||||
"tests/test_geom_text_label.py"
|
||||
"tests/test_geom_smooth.py"
|
||||
"tests/test_geom_segment.py"
|
||||
"tests/test_geom_ribbon_area.py"
|
||||
"tests/test_geom_map.py"
|
||||
# Assertion Errors:
|
||||
# Generated plot images do not exactly match the expected files.
|
||||
# After manually checking, this is caused by extremely subtle differences in label placement.
|
||||
"tests/test_annotation_logticks.py"
|
||||
"tests/test_coords.py"
|
||||
"tests/test_facets.py"
|
||||
"tests/test_facet_labelling.py"
|
||||
"tests/test_coords.py"
|
||||
"tests/test_annotation_logticks.py"
|
||||
"tests/test_geom_bar_col_histogram.py"
|
||||
"tests/test_geom_bin_2d.py"
|
||||
"tests/test_geom_boxplot.py"
|
||||
"tests/test_geom_density.py"
|
||||
"tests/test_geom_dotplot.py"
|
||||
"tests/test_geom_map.py"
|
||||
"tests/test_geom_path_line_step.py"
|
||||
"tests/test_geom_point.py"
|
||||
"tests/test_geom_raster.py"
|
||||
"tests/test_geom_ribbon_area.py"
|
||||
"tests/test_geom_sina.py"
|
||||
"tests/test_geom_smooth.py"
|
||||
"tests/test_geom_text_label.py"
|
||||
"tests/test_geom_violin.py"
|
||||
"tests/test_position.py"
|
||||
"tests/test_qplot.py"
|
||||
"tests/test_scale_internals.py"
|
||||
"tests/test_scale_labelling.py"
|
||||
"tests/test_stat_ecdf.py"
|
||||
"tests/test_stat_summary.py"
|
||||
"tests/test_theme.py"
|
||||
|
||||
# Linting / formatting: useless as it has nothing to do with the package functionning
|
||||
# Disabling this prevents adding a dependency on 'ruff' and 'black'.
|
||||
"tests/test_lint_and_format.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,39 +1,53 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, absl-py
|
||||
, chex
|
||||
, jaxlib
|
||||
, tensorflow-probability
|
||||
, optax
|
||||
, dm-haiku
|
||||
, bsuite
|
||||
, frozendict
|
||||
, pytestCheckHook
|
||||
, distrax
|
||||
, dm-env
|
||||
, distrax }:
|
||||
, jax
|
||||
, jaxlib
|
||||
, numpy
|
||||
, tensorflow-probability
|
||||
, dm-haiku
|
||||
, optax
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rlax";
|
||||
version = "0.1.6";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-C3nFOv/zxvAoz6WZ0RAZffzEbxIx/XrGabO4QPxrik8=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "google-deepmind";
|
||||
repo = "rlax";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-v2Lbzya+E9d7tlUVlQQa4fuPp2q3E309Qvyt70mcdb0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
patches = [
|
||||
(fetchpatch { # Follow chex API change (https://github.com/google-deepmind/chex/pull/52)
|
||||
name = "replace-deprecated-chex-assertions";
|
||||
url = "https://github.com/google-deepmind/rlax/commit/30e7913a1102667137654d6e652a6c4b9e9ba1f4.patch";
|
||||
hash = "sha256-OPnuTKEtwZ28hzR1660v3DcktxTYjhR1xYvFbQvOhgs=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
absl-py
|
||||
chex
|
||||
jaxlib
|
||||
distrax
|
||||
dm-env
|
||||
jax
|
||||
jaxlib
|
||||
numpy
|
||||
tensorflow-probability
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
bsuite
|
||||
dm-env
|
||||
dm-haiku
|
||||
frozendict
|
||||
optax
|
||||
pytestCheckHook
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue