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
86
pkgs/development/python-modules/elegy/default.nix
Normal file
86
pkgs/development/python-modules/elegy/default.nix
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
{ buildPythonPackage
|
||||
, cloudpickle
|
||||
, deepdish
|
||||
, deepmerge
|
||||
, dm-haiku
|
||||
, fetchFromGitHub
|
||||
, jaxlib
|
||||
, lib
|
||||
, poetry
|
||||
, pytestCheckHook
|
||||
, pytorch
|
||||
, pyyaml
|
||||
, sh
|
||||
, tables
|
||||
, tabulate
|
||||
, tensorboardx
|
||||
, tensorflow
|
||||
, toolz
|
||||
, treex
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "elegy";
|
||||
version = "0.8.6";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "poets-ai";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-FZmLriYhsX+zyQKCtCjbOy6MH+AvjzHRNUyaDSXGlLI=";
|
||||
};
|
||||
|
||||
# The cloudpickle constraint is too strict. wandb is marked as an optional
|
||||
# dependency but `buildPythonPackage` doesn't seem to respect that setting.
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \
|
||||
--replace 'wandb = { version = "^0.12.10", optional = true }' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry
|
||||
];
|
||||
|
||||
buildInputs = [ jaxlib ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cloudpickle
|
||||
deepdish
|
||||
deepmerge
|
||||
dm-haiku
|
||||
pyyaml
|
||||
tables
|
||||
tabulate
|
||||
tensorboardx
|
||||
toolz
|
||||
treex
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"elegy"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytorch
|
||||
sh
|
||||
tensorflow
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Fails with `Could not find compiler for platform Host: NOT_FOUND: could not find registered compiler for platform Host -- check target linkage`.
|
||||
# Runs fine in docker with Ubuntu 22.04. I suspect the issue is the sandboxing in `nixpkgs` but not sure.
|
||||
"test_saved_model_poly"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Neural Networks framework based on Jax inspired by Keras and Haiku";
|
||||
homepage = "https://github.com/poets-ai/elegy";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ndl ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue