Merge pull request #231808 from fabaff/numpyro-fix

python310Packages.numpyro: add missing input for tests
This commit is contained in:
Fabian Affolter 2023-05-15 12:51:17 +02:00 committed by GitHub
commit e28384a49f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 10 deletions

View file

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, emcee , emcee
, h5netcdf
, matplotlib , matplotlib
, netcdf4 , netcdf4
, numba , numba
@ -31,7 +32,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "arviz"; pname = "arviz";
version = "0.15.0"; version = "0.15.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -40,10 +41,11 @@ buildPythonPackage rec {
owner = "arviz-devs"; owner = "arviz-devs";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-LcdITCT9Bvycfj/taXhzkjn4IfZrxWX9MYXD6+MifOs="; hash = "sha256-jjA+yltvpPZldIxXXqu1bXCLqpiU5/NBYTPlI9ImGVs=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
h5netcdf
matplotlib matplotlib
netcdf4 netcdf4
numpy numpy
@ -80,11 +82,6 @@ buildPythonPackage rec {
"arviz/tests/base_tests/" "arviz/tests/base_tests/"
]; ];
disabledTestPaths = [
# Remove tests as dependency creates a circular dependency
"arviz/tests/external_tests/test_data_pymc.py"
];
disabledTests = [ disabledTests = [
# Tests require network access # Tests require network access
"test_plot_separation" "test_plot_separation"
@ -94,6 +91,8 @@ buildPythonPackage rec {
"test_plot_kde" "test_plot_kde"
"test_plot_kde_2d" "test_plot_kde_2d"
"test_plot_pair" "test_plot_pair"
# Array mismatch
"test_plot_ts"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
@ -103,6 +102,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Library for exploratory analysis of Bayesian models"; description = "Library for exploratory analysis of Bayesian models";
homepage = "https://arviz-devs.github.io/arviz/"; homepage = "https://arviz-devs.github.io/arviz/";
changelog = "https://github.com/arviz-devs/arviz/blob/v${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ omnipotententity ]; maintainers = with maintainers; [ omnipotententity ];
}; };

View file

@ -21,9 +21,11 @@ buildPythonPackage rec {
hash = "sha256-kyw7Vzvtc3Dr/J6ALNYPGk2lI277EbNu7/iXMk12v1Y="; hash = "sha256-kyw7Vzvtc3Dr/J6ALNYPGk2lI277EbNu7/iXMk12v1Y=";
}; };
nativeBuildInputs = [ SETUPTOOLS_SCM_PRETEND_VERSION = version;
setuptools-scm
]; nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
h5py h5py

View file

@ -7,6 +7,7 @@
, numpy , numpy
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, tensorflow-probability
, tqdm , tqdm
}: }:
@ -31,6 +32,7 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
tensorflow-probability
pytestCheckHook pytestCheckHook
]; ];
@ -46,11 +48,16 @@ buildPythonPackage rec {
"test_gamma_poisson" "test_gamma_poisson"
"test_gof" "test_gof"
"test_hpdi" "test_hpdi"
"test_kl_dirichlet_dirichlet"
"test_kl_univariate" "test_kl_univariate"
"test_mean_var" "test_mean_var"
# Tests want to download data # Tests want to download data
"data_load" "data_load"
"test_jsb_chorales" "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; { meta = with lib; {