From 7452a2d176f539244a16c7818d1ba5d7e6cd82de Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 May 2023 10:24:13 +0200 Subject: [PATCH 1/3] python310Packages.numpyro: add missing input for tests --- pkgs/development/python-modules/numpyro/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/numpyro/default.nix b/pkgs/development/python-modules/numpyro/default.nix index 667aa9d470d..beb8557d4a7 100644 --- a/pkgs/development/python-modules/numpyro/default.nix +++ b/pkgs/development/python-modules/numpyro/default.nix @@ -7,6 +7,7 @@ , numpy , pytestCheckHook , pythonOlder +, tensorflow-probability , tqdm }: @@ -31,6 +32,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + tensorflow-probability pytestCheckHook ]; @@ -46,11 +48,16 @@ buildPythonPackage rec { "test_gamma_poisson" "test_gof" "test_hpdi" + "test_kl_dirichlet_dirichlet" "test_kl_univariate" "test_mean_var" # Tests want to download data "data_load" "test_jsb_chorales" + # RuntimeWarning: overflow encountered in cast + "test_zero_inflated_logits_probs_agree" + # NameError: unbound axis name: _provenance + "test_model_transformation" ]; meta = with lib; { From 6d2ffb194e421ebaca1990eed926eda690b4085a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 May 2023 11:28:30 +0200 Subject: [PATCH 2/3] python310Packages.arviz: 0.15.0 -> 0.15.1 Diff: arviz-devs/arviz@refs/tags/v0.15.0...v0.15.1 Changelog: https://github.com/arviz-devs/arviz/blob/v0.15.1/CHANGELOG.md --- pkgs/development/python-modules/arviz/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index bf8c08664f9..fee3f12b80c 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchFromGitHub , emcee +, h5netcdf , matplotlib , netcdf4 , numba @@ -31,7 +32,7 @@ buildPythonPackage rec { pname = "arviz"; - version = "0.15.0"; + version = "0.15.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -40,10 +41,11 @@ buildPythonPackage rec { owner = "arviz-devs"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-LcdITCT9Bvycfj/taXhzkjn4IfZrxWX9MYXD6+MifOs="; + hash = "sha256-jjA+yltvpPZldIxXXqu1bXCLqpiU5/NBYTPlI9ImGVs="; }; propagatedBuildInputs = [ + h5netcdf matplotlib netcdf4 numpy @@ -80,11 +82,6 @@ buildPythonPackage rec { "arviz/tests/base_tests/" ]; - disabledTestPaths = [ - # Remove tests as dependency creates a circular dependency - "arviz/tests/external_tests/test_data_pymc.py" - ]; - disabledTests = [ # Tests require network access "test_plot_separation" @@ -94,6 +91,8 @@ buildPythonPackage rec { "test_plot_kde" "test_plot_kde_2d" "test_plot_pair" + # Array mismatch + "test_plot_ts" ]; pythonImportsCheck = [ @@ -103,6 +102,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for exploratory analysis of Bayesian models"; homepage = "https://arviz-devs.github.io/arviz/"; + changelog = "https://github.com/arviz-devs/arviz/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ omnipotententity ]; }; From e639bfd14d095566a363343aebaac51572d64185 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 May 2023 01:13:30 +0200 Subject: [PATCH 3/3] python310Packages.h5netcdf: fix versioning --- pkgs/development/python-modules/h5netcdf/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 55fb49b1ccb..680e94028c0 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -21,9 +21,11 @@ buildPythonPackage rec { hash = "sha256-kyw7Vzvtc3Dr/J6ALNYPGk2lI277EbNu7/iXMk12v1Y="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; propagatedBuildInputs = [ h5py