lol

Merge pull request #255709 from GaetanLepage/skorch

python310Packages.skorch: 0.14.0 -> 0.15.0

authored by

Samuel Ainsworth and committed by
GitHub
5ba549ea 34424434

+30 -8
+30 -8
pkgs/development/python-modules/skorch/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchPypi 5 - , pytestCheckHook 6 - , flaky 5 + , pythonOlder 7 6 , numpy 8 - , pandas 9 - , torch 10 7 , scikit-learn 11 8 , scipy 12 9 , tabulate 10 + , torch 13 11 , tqdm 12 + , flaky 13 + , pandas 14 + , pytestCheckHook 15 + , safetensors 16 + , pythonAtLeast 14 17 }: 15 18 16 19 buildPythonPackage rec { 17 20 pname = "skorch"; 18 - version = "0.14.0"; 21 + version = "0.15.0"; 19 22 20 23 src = fetchPypi { 21 24 inherit pname version; 22 - hash = "sha256-/d0s0N40W18uGfVbD9VEbhbWfduoo+TBqDjmTkjMUxs="; 25 + hash = "sha256-39XVBlCmbg162z9uL84GZrU+v+M8waXbGdVV72ZYf84="; 23 26 }; 24 27 25 - propagatedBuildInputs = [ numpy torch scikit-learn scipy tabulate tqdm ]; 26 - nativeCheckInputs = [ flaky pandas pytestCheckHook ]; 28 + disabled = pythonOlder "3.8"; 29 + 30 + propagatedBuildInputs = [ 31 + numpy 32 + scikit-learn 33 + scipy 34 + tabulate 35 + torch 36 + tqdm 37 + ]; 38 + 39 + nativeCheckInputs = [ 40 + flaky 41 + pandas 42 + pytestCheckHook 43 + safetensors 44 + ]; 27 45 28 46 # patch out pytest-cov dep/invocation 29 47 postPatch = '' ··· 40 58 "test_pickle_load" 41 59 ] ++ lib.optionals stdenv.isDarwin [ 42 60 # there is a problem with the compiler selection 61 + "test_fit_and_predict_with_compile" 62 + ] ++ lib.optionals (pythonAtLeast "3.11") [ 63 + # Python 3.11+ not yet supported for torch.compile 64 + # https://github.com/pytorch/pytorch/blob/v2.0.1/torch/_dynamo/eval_frame.py#L376-L377 43 65 "test_fit_and_predict_with_compile" 44 66 ]; 45 67