mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 00:54:40 +00:00
python310Packages.chex: 0.1.6 -> 0.1.82; unbreak
This commit is contained in:
parent
45a0fa3ee2
commit
189daa5eb3
@ -1,35 +1,39 @@
|
|||||||
{ absl-py
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, absl-py
|
||||||
, cloudpickle
|
, cloudpickle
|
||||||
, dm-tree
|
, dm-tree
|
||||||
, fetchFromGitHub
|
|
||||||
, jax
|
, jax
|
||||||
, jaxlib
|
, jaxlib
|
||||||
, lib
|
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, toolz
|
, toolz
|
||||||
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "chex";
|
pname = "chex";
|
||||||
version = "0.1.6";
|
version = "0.1.82";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "deepmind";
|
owner = "deepmind";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-VolRlLLgKga9S17ByVrYya9VPtu9yiOnvt/WmlE1DOc=";
|
hash = "sha256-xBq22AaR2Tp1NSPefEyvCDeUYqRZlAf5LVHWo0luiXk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
absl-py
|
absl-py
|
||||||
cloudpickle
|
jaxlib
|
||||||
dm-tree
|
|
||||||
jax
|
jax
|
||||||
numpy
|
numpy
|
||||||
toolz
|
toolz
|
||||||
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
@ -37,21 +41,11 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
jaxlib
|
cloudpickle
|
||||||
|
dm-tree
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# See https://github.com/deepmind/chex/issues/204.
|
|
||||||
"test_uninspected_checks"
|
|
||||||
|
|
||||||
# These tests started failing at some point after upgrading to 0.1.5
|
|
||||||
"test_useful_failure"
|
|
||||||
"TreeAssertionsTest"
|
|
||||||
"PmapFakeTest"
|
|
||||||
"WithDeviceTest"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Chex is a library of utilities for helping to write reliable JAX code.";
|
description = "Chex is a library of utilities for helping to write reliable JAX code.";
|
||||||
homepage = "https://github.com/deepmind/chex";
|
homepage = "https://github.com/deepmind/chex";
|
||||||
|
Loading…
Reference in New Issue
Block a user