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 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 - , pytestCheckHook 6 - , flaky 7 , numpy 8 - , pandas 9 - , torch 10 , scikit-learn 11 , scipy 12 , tabulate 13 , tqdm 14 }: 15 16 buildPythonPackage rec { 17 pname = "skorch"; 18 - version = "0.14.0"; 19 20 src = fetchPypi { 21 inherit pname version; 22 - hash = "sha256-/d0s0N40W18uGfVbD9VEbhbWfduoo+TBqDjmTkjMUxs="; 23 }; 24 25 - propagatedBuildInputs = [ numpy torch scikit-learn scipy tabulate tqdm ]; 26 - nativeCheckInputs = [ flaky pandas pytestCheckHook ]; 27 28 # patch out pytest-cov dep/invocation 29 postPatch = '' ··· 40 "test_pickle_load" 41 ] ++ lib.optionals stdenv.isDarwin [ 42 # there is a problem with the compiler selection 43 "test_fit_and_predict_with_compile" 44 ]; 45
··· 2 , stdenv 3 , buildPythonPackage 4 , fetchPypi 5 + , pythonOlder 6 , numpy 7 , scikit-learn 8 , scipy 9 , tabulate 10 + , torch 11 , tqdm 12 + , flaky 13 + , pandas 14 + , pytestCheckHook 15 + , safetensors 16 + , pythonAtLeast 17 }: 18 19 buildPythonPackage rec { 20 pname = "skorch"; 21 + version = "0.15.0"; 22 23 src = fetchPypi { 24 inherit pname version; 25 + hash = "sha256-39XVBlCmbg162z9uL84GZrU+v+M8waXbGdVV72ZYf84="; 26 }; 27 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 + ]; 45 46 # patch out pytest-cov dep/invocation 47 postPatch = '' ··· 58 "test_pickle_load" 59 ] ++ lib.optionals stdenv.isDarwin [ 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 65 "test_fit_and_predict_with_compile" 66 ]; 67