uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/development/python-modules/dm-haiku/default.nix
Normal file
71
pkgs/development/python-modules/dm-haiku/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ buildPythonPackage
|
||||
, chex
|
||||
, cloudpickle
|
||||
, dill
|
||||
, dm-tree
|
||||
, fetchFromGitHub
|
||||
, jaxlib
|
||||
, jmp
|
||||
, lib
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, tabulate
|
||||
, tensorflow
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dm-haiku";
|
||||
version = "0.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepmind";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-qvKMeGPiWXvvyV+GZdTWdsC6Wp08AmP8nDtWk7sZtqM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jmp
|
||||
tabulate
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
chex
|
||||
cloudpickle
|
||||
dill
|
||||
dm-tree
|
||||
jaxlib
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
tensorflow
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"haiku"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# These tests require `bsuite` which isn't packaged in `nixpkgs`.
|
||||
"examples/impala_lite_test.py"
|
||||
"examples/impala/actor_test.py"
|
||||
"examples/impala/learner_test.py"
|
||||
# This test breaks on multiple cases with TF-related errors,
|
||||
# likely that's the reason the upstream uses TF-nightly for tests?
|
||||
# `nixpkgs` doesn't have the corresponding TF version packaged.
|
||||
"haiku/_src/integration/jax2tf_test.py"
|
||||
# `TypeError: lax.conv_general_dilated requires arguments to have the same dtypes, got float32, float16`.
|
||||
"haiku/_src/integration/numpy_inputs_test.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# See https://github.com/deepmind/dm-haiku/issues/366.
|
||||
"test_jit_Recurrent"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Haiku is a simple neural network library for JAX developed by some of the authors of Sonnet.";
|
||||
homepage = "https://github.com/deepmind/dm-haiku";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ndl ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue