···3434 "static"
3535 "nix" # mainly for nixUnstable users, but also for access to nix/netrc
3636 # Shells
3737+ "shells"
3738 "bashrc"
3839 "zshenv"
3940 "zshrc"
···7172 "pki"
7273 ];
7374 in concatStringsSep "\n "
7474- (map (file: "--ro-bind-try $(${coreutils}/bin/readlink -f /etc/${file}) /etc/${file}") files);
7575+ (map (file: "--ro-bind-try $(${coreutils}/bin/readlink -m /etc/${file}) /etc/${file}") files);
75767677 # Create this on the fly instead of linking from /nix
7778 # The container might have to modify it and re-run ldconfig if there are
+13-4
pkgs/development/python-modules/elegy/default.nix
···11-{ buildPythonPackage
11+{ lib
22+, buildPythonPackage
23, cloudpickle
34, deepdish
45, deepmerge
56, dm-haiku
67, fetchFromGitHub
78, jaxlib
88-, lib
99, poetry
1010, pytestCheckHook
1111-, torch
1111+, pythonOlder
1212, pyyaml
1313, sh
1414, tables
···1616, tensorboardx
1717, tensorflow
1818, toolz
1919+, torch
1920, treex
2021, typing-extensions
2122}:
···2425 pname = "elegy";
2526 version = "0.8.6";
2627 format = "pyproject";
2828+2929+ disabled = pythonOlder "3.7";
27302831 src = fetchFromGitHub {
2932 owner = "poets-ai";
···34373538 # The cloudpickle constraint is too strict. wandb is marked as an optional
3639 # dependency but `buildPythonPackage` doesn't seem to respect that setting.
4040+ # Python constraint: https://github.com/poets-ai/elegy/issues/244
3741 postPatch = ''
3842 substituteInPlace pyproject.toml \
4343+ --replace 'python = ">=3.7,<3.10"' 'python = ">=3.7"' \
3944 --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \
4045 --replace 'wandb = { version = "^0.12.10", optional = true }' ""
4146 '';
···4449 poetry
4550 ];
46514747- buildInputs = [ jaxlib ];
5252+ buildInputs = [
5353+ jaxlib
5454+ ];
48554956 propagatedBuildInputs = [
5057 cloudpickle
···7582 # Fails with `Could not find compiler for platform Host: NOT_FOUND: could not find registered compiler for platform Host -- check target linkage`.
7683 # Runs fine in docker with Ubuntu 22.04. I suspect the issue is the sandboxing in `nixpkgs` but not sure.
7784 "test_saved_model_poly"
8585+ # AttributeError: module 'jax' has no attribute 'tree_multimap'
8686+ "DataLoaderTestCase"
7887 ];
79888089 meta = with lib; {