Merge pull request #255709 from GaetanLepage/skorch

python310Packages.skorch: 0.14.0 -> 0.15.0
This commit is contained in:
Samuel Ainsworth 2023-09-19 13:40:19 -04:00 committed by GitHub
commit 5ba549eafc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,28 +2,46 @@
, stdenv , stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytestCheckHook , pythonOlder
, flaky
, numpy , numpy
, pandas
, torch
, scikit-learn , scikit-learn
, scipy , scipy
, tabulate , tabulate
, torch
, tqdm , tqdm
, flaky
, pandas
, pytestCheckHook
, safetensors
, pythonAtLeast
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "skorch"; pname = "skorch";
version = "0.14.0"; version = "0.15.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-/d0s0N40W18uGfVbD9VEbhbWfduoo+TBqDjmTkjMUxs="; hash = "sha256-39XVBlCmbg162z9uL84GZrU+v+M8waXbGdVV72ZYf84=";
}; };
propagatedBuildInputs = [ numpy torch scikit-learn scipy tabulate tqdm ]; disabled = pythonOlder "3.8";
nativeCheckInputs = [ flaky pandas pytestCheckHook ];
propagatedBuildInputs = [
numpy
scikit-learn
scipy
tabulate
torch
tqdm
];
nativeCheckInputs = [
flaky
pandas
pytestCheckHook
safetensors
];
# patch out pytest-cov dep/invocation # patch out pytest-cov dep/invocation
postPatch = '' postPatch = ''
@ -41,6 +59,10 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
# there is a problem with the compiler selection # there is a problem with the compiler selection
"test_fit_and_predict_with_compile" "test_fit_and_predict_with_compile"
] ++ lib.optionals (pythonAtLeast "3.11") [
# Python 3.11+ not yet supported for torch.compile
# https://github.com/pytorch/pytorch/blob/v2.0.1/torch/_dynamo/eval_frame.py#L376-L377
"test_fit_and_predict_with_compile"
]; ];
disabledTestPaths = [ disabledTestPaths = [