···34 "static"
35 "nix" # mainly for nixUnstable users, but also for access to nix/netrc
36 # Shells
037 "bashrc"
38 "zshenv"
39 "zshrc"
···71 "pki"
72 ];
73 in concatStringsSep "\n "
74- (map (file: "--ro-bind-try $(${coreutils}/bin/readlink -f /etc/${file}) /etc/${file}") files);
7576 # Create this on the fly instead of linking from /nix
77 # The container might have to modify it and re-run ldconfig if there are
···34 "static"
35 "nix" # mainly for nixUnstable users, but also for access to nix/netrc
36 # Shells
37+ "shells"
38 "bashrc"
39 "zshenv"
40 "zshrc"
···72 "pki"
73 ];
74 in concatStringsSep "\n "
75+ (map (file: "--ro-bind-try $(${coreutils}/bin/readlink -m /etc/${file}) /etc/${file}") files);
7677 # Create this on the fly instead of linking from /nix
78 # The container might have to modify it and re-run ldconfig if there are
+13-4
pkgs/development/python-modules/elegy/default.nix
···1-{ buildPythonPackage
02, cloudpickle
3, deepdish
4, deepmerge
5, dm-haiku
6, fetchFromGitHub
7, jaxlib
8-, lib
9, poetry
10, pytestCheckHook
11-, torch
12, pyyaml
13, sh
14, tables
···16, tensorboardx
17, tensorflow
18, toolz
019, treex
20, typing-extensions
21}:
···24 pname = "elegy";
25 version = "0.8.6";
26 format = "pyproject";
002728 src = fetchFromGitHub {
29 owner = "poets-ai";
···3435 # The cloudpickle constraint is too strict. wandb is marked as an optional
36 # dependency but `buildPythonPackage` doesn't seem to respect that setting.
037 postPatch = ''
38 substituteInPlace pyproject.toml \
039 --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \
40 --replace 'wandb = { version = "^0.12.10", optional = true }' ""
41 '';
···44 poetry
45 ];
4647- buildInputs = [ jaxlib ];
004849 propagatedBuildInputs = [
50 cloudpickle
···75 # Fails with `Could not find compiler for platform Host: NOT_FOUND: could not find registered compiler for platform Host -- check target linkage`.
76 # Runs fine in docker with Ubuntu 22.04. I suspect the issue is the sandboxing in `nixpkgs` but not sure.
77 "test_saved_model_poly"
0078 ];
7980 meta = with lib; {
···1+{ lib
2+, buildPythonPackage
3, cloudpickle
4, deepdish
5, deepmerge
6, dm-haiku
7, fetchFromGitHub
8, jaxlib
09, poetry
10, pytestCheckHook
11+, pythonOlder
12, pyyaml
13, sh
14, tables
···16, tensorboardx
17, tensorflow
18, toolz
19+, torch
20, treex
21, typing-extensions
22}:
···25 pname = "elegy";
26 version = "0.8.6";
27 format = "pyproject";
28+29+ disabled = pythonOlder "3.7";
3031 src = fetchFromGitHub {
32 owner = "poets-ai";
···3738 # The cloudpickle constraint is too strict. wandb is marked as an optional
39 # dependency but `buildPythonPackage` doesn't seem to respect that setting.
40+ # Python constraint: https://github.com/poets-ai/elegy/issues/244
41 postPatch = ''
42 substituteInPlace pyproject.toml \
43+ --replace 'python = ">=3.7,<3.10"' 'python = ">=3.7"' \
44 --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \
45 --replace 'wandb = { version = "^0.12.10", optional = true }' ""
46 '';
···49 poetry
50 ];
5152+ buildInputs = [
53+ jaxlib
54+ ];
5556 propagatedBuildInputs = [
57 cloudpickle
···82 # Fails with `Could not find compiler for platform Host: NOT_FOUND: could not find registered compiler for platform Host -- check target linkage`.
83 # Runs fine in docker with Ubuntu 22.04. I suspect the issue is the sandboxing in `nixpkgs` but not sure.
84 "test_saved_model_poly"
85+ # AttributeError: module 'jax' has no attribute 'tree_multimap'
86+ "DataLoaderTestCase"
87 ];
8889 meta = with lib; {